summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-06-30 21:26:54 +0000
committerGordon Sim <gsim@apache.org>2010-06-30 21:26:54 +0000
commiteeba2d390d1297c26f6dfcaa825b8e3913e96614 (patch)
treec06d3ff2dcc8f886248027c998a29ee14f646463 /qpid
parentd991ec04ca246220148a1efff7eb6995d80cd676 (diff)
downloadqpid-python-eeba2d390d1297c26f6dfcaa825b8e3913e96614.tar.gz
Fix to bug introduced in r959353 causing error when qpid-stat is run against standalone broker
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@959439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rwxr-xr-xqpid/tools/src/py/qpid-stat3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/tools/src/py/qpid-stat b/qpid/tools/src/py/qpid-stat
index 19343df091..686c0e14fe 100755
--- a/qpid/tools/src/py/qpid-stat
+++ b/qpid/tools/src/py/qpid-stat
@@ -161,7 +161,8 @@ class BrokerManager(Console):
def Disconnect(self):
if self.broker:
self.qmf.delBroker(self.broker)
- for b in self.brokers: self.qmf.delBroker(b.broker)
+ else:
+ for b in self.brokers: self.qmf.delBroker(b.broker)
def _getCluster(self):
packages = self.qmf.getPackages()