From 7381bac19a08c7753fbb152b714c24fe8dfce290 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 2 Mar 2011 16:18:47 +0000 Subject: QPID-3103: handle null arguments git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1076275 13f79535-47bb-0310-9956-ffa450edef68 --- tools/src/py/qpid-config | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/src') diff --git a/tools/src/py/qpid-config b/tools/src/py/qpid-config index 7af6a791e8..da490e831a 100755 --- a/tools/src/py/qpid-config +++ b/tools/src/py/qpid-config @@ -372,6 +372,7 @@ class BrokerManager: if self.match(ex.name, filter): print "%-10s%-*s " % (ex.type, maxNameLen, ex.name), args = ex.arguments + if not args: args = {} if ex.durable: print "--durable", if MSG_SEQUENCE in args and args[MSG_SEQUENCE] == 1: print "--sequence", if IVE in args and args[IVE] == 1: print "--ive", @@ -413,6 +414,7 @@ class BrokerManager: if self.match(q.name, filter): print "%-*s " % (maxNameLen, q.name), args = q.arguments + if not args: args = {} if q.durable: print "--durable", if CLUSTER_DURABLE in args and args[CLUSTER_DURABLE] == 1: print "--cluster-durable", if q.autoDelete: print "auto-del", -- cgit v1.2.1