Author: eallen
Date: 2012-12-18 19:42:14 +0000 (Tue, 18 Dec 2012)
New Revision: 5618
Modified:
trunk/cumin/python/cumin/session.py
Log:
Fix for 1st half of BZ 886937 - Can't remove broker link. Detect request to construct
broker link key, and generate a non-standard key for qmf call.
Modified: trunk/cumin/python/cumin/session.py
===================================================================
--- trunk/cumin/python/cumin/session.py 2012-12-18 18:23:31 UTC (rev 5617)
+++ trunk/cumin/python/cumin/session.py 2012-12-18 19:42:14 UTC (rev 5618)
@@ -88,6 +88,9 @@
# A very special workaround for queue keys
key = obj.name
+ elif obj._class is self.app.model.org_apache_qpid_broker.Link:
+ # A very special workaround for link keys
+ key = "qpid.%s:%s:%d" % (obj.transport, obj.host, obj.port)
else:
key_args = [str(getattr(obj, x.name))
for x in obj._class._attributes
Show replies by date