[X2Go-Commits] x2gobroker.git - statusflag (branch) updated: 0.0.2.2-14-g91513a5

X2Go dev team git-admin at x2go.org
Tue Jun 4 21:49:42 CEST 2013


The branch, statusflag has been updated
       via  91513a529b3ce9f1aacfe88c039e78489eae710e (commit)
      from  a856cf9c04098e9510b4122adb8ff7fc45414cc2 (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 91513a529b3ce9f1aacfe88c039e78489eae710e
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Tue Jun 4 21:49:38 2013 +0200

    fix Boolean evaluation

-----------------------------------------------------------------------

Summary of changes:
 x2gobroker/brokers/base_broker.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

The diff of changes is:
diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index 679600e..8ceacd7 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -852,7 +852,7 @@ class X2GoBroker(object):
             if self.check_profile_acls(username, acls):
 
                 remote_agent = self.get_remote_agent(profile_id)
-                agent_query_mode = ( remote_agent == u'LOCAL') or u'SSH'
+                agent_query_mode = ( remote_agent == u'LOCAL') and u'LOCAL' or u'SSH'
                 if remote_agent:
                     running_sessions, suspended_sessions = x2gobroker.agent.has_sessions(username, query_mode=agent_query_mode, remote_agent=remote_agent)
                     if running_sessions: profile['status'] = u'R'


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