Author: justi9
Date: 2008-04-09 07:59:40 -0400 (Wed, 09 Apr 2008)
New Revision: 1879
Modified:
mgmt/mint/python/mint/__init__.py
Log:
Filter out broker objects that haven't been fully configured yet
Modified: mgmt/mint/python/mint/__init__.py
===================================================================
--- mgmt/mint/python/mint/__init__.py 2008-04-09 11:52:07 UTC (rev 1878)
+++ mgmt/mint/python/mint/__init__.py 2008-04-09 11:59:40 UTC (rev 1879)
@@ -143,9 +143,7 @@
#print "\n\n=============== %s %d found AFTER QUERY\n\n" %
(objType.__name__, idOriginal)
pass
- if isinstance(obj, Broker):
- assert obj.managedBroker
-
+ if isinstance(obj, Broker) and obj.managedBroker:
host, port = obj.managedBroker.split(":")
port = int(port)
existing = list(obj.registrations)
Show replies by date