[X2Go-Commits] x2gobroker.git - statusflag (branch) updated: 0.0.2.2-16-g70b42c5
X2Go dev team
git-admin at x2go.org
Tue Jun 4 22:15:30 CEST 2013
The branch, statusflag has been updated
via 70b42c517cfe898af2fab2c06fbedb625c3909d2 (commit)
from 0560f43d1fffc74435248349721c7bfc21b8a25c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 70b42c517cfe898af2fab2c06fbedb625c3909d2
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Jun 4 22:15:23 2013 +0200
fix has_sessions() agent call
-----------------------------------------------------------------------
Summary of changes:
x2gobroker/agent.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
The diff of changes is:
diff --git a/x2gobroker/agent.py b/x2gobroker/agent.py
index 0b6d94b..1a169b4 100644
--- a/x2gobroker/agent.py
+++ b/x2gobroker/agent.py
@@ -190,7 +190,7 @@ def has_sessions(username, query_mode='LOCAL', remote_agent=None):
"""
_session_list = list_sessions(username, query_mode=query_mode, remote_agent=remote_agent)
- return ([ s[3] for s in _session_list if s.split('|')[4] == 'R' ], [ s[3] for s in _session_list if s.split('|')[4] == 'S' ])
+ return ([ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'R' ], [ s.split('|')[3] for s in _session_list if s.split('|')[4] == 'S' ])
def find_busy_servers(username, query_mode='LOCAL', remote_agent=None):
"""\
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2gobroker.git" (HTTP(S) Session broker for X2Go).
More information about the x2go-commits
mailing list