Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: X2Go dev team <git-admin-P0WSJaAXTow <at> public.gmane.org>
Subject: x2gobroker.git - master (branch) updated: 0.0.0.1-46-ge1e748e
Newsgroups: gmane.linux.terminal-server.x2go.scm
Date: Thursday 21st February 2013 00:04:26 UTC (over 3 years ago)
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

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
@@ -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
 
CD: 61ms