Author: eallen
Date: 2008-12-03 12:24:54 -0500 (Wed, 03 Dec 2008)
New Revision: 2917
Modified:
mgmt/trunk/cumin/python/cumin/system.py
Log:
Allow for more than one daemon of each type in the system sevices set.
Modified: mgmt/trunk/cumin/python/cumin/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/system.py 2008-12-03 17:17:01 UTC (rev 2916)
+++ mgmt/trunk/cumin/python/cumin/system.py 2008-12-03 17:24:54 UTC (rev 2917)
@@ -163,11 +163,12 @@
sql = "system = '%s'" % system.nodeName
for daemon in daemon_types:
- system_daemon = daemon.select(sql)
- try:
- daemons.append(system_daemon[0])
- except Exception, e:
- pass
+ system_daemons = daemon.select(sql)
+ for devil in system_daemons:
+ try:
+ daemons.append(devil)
+ except Exception, e:
+ pass
brokers = Broker.select("system_id = '%i'" % system.id)
for broker in brokers:
Show replies by date