[X2Go-Commits] x2gobroker.git - build-main (branch) updated: 0.0.0.1-46-ge1e748e

X2Go dev team git-admin at x2go.org
Sun May 19 13:04:47 CEST 2013


The branch, build-main has been updated
       via  e1e748e3c3b804f4ddccce138ee12069004e816b (commit)
      from  f703baeb847d1ac9c877faee34f93e08e0af22d6 (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 -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 x2gobroker/agent.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

The diff of changes is:
diff --git a/x2gobroker/agent.py b/x2gobroker/agent.py
index d055079..3beeaff 100644
--- a/x2gobroker/agent.py
+++ b/x2gobroker/agent.py
@@ -134,9 +134,10 @@ def find_busy_servers(username, query_mode='LOCAL', remote_agent=None):
     server_usage = {}
 
     if server_list:
-        for server_item in server_list.split('\n'):
-            usage, server = server_item.split(':')
-            server_usage.update({ server: int(usage) })
+        for server_item in server_list:
+            if ':' in server_item:
+                usage, server = server_item.split(':')
+                server_usage.update({ server: int(usage) })
 
     return server_usage
 


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