X2Go dev team | 21 Feb 01:04 2013

x2gobroker.git - master (branch) updated: 0.0.0.1-46-ge1e748e

The branch, master 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 -----------------------------------------------------------------
commit e1e748e3c3b804f4ddccce138ee12069004e816b
Author: Mike Gabriel <mike.gabriel@...>
Date:   Thu Feb 21 01:04:09 2013 +0100

    fix faulty list handling in agent.py

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

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
 <at>  <at>  -134,9 +134,10  <at>  <at>  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

Gmane