diff options
author | Gordon Sim <gsim@apache.org> | 2011-03-02 16:18:47 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-03-02 16:18:47 +0000 |
commit | df3591f592c9abd4cf64d21624b991163f4f164a (patch) | |
tree | 82c4b7d35376b470f066f2bb7ce924ca2db0fa8a | |
parent | c96f9fa16e589ed853471e9a3dcc2308d96bc172 (diff) | |
download | qpid-python-df3591f592c9abd4cf64d21624b991163f4f164a.tar.gz |
QPID-3103: handle null arguments
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1076275 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/tools/src/py/qpid-config | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/tools/src/py/qpid-config b/qpid/tools/src/py/qpid-config index 7af6a791e8..da490e831a 100755 --- a/qpid/tools/src/py/qpid-config +++ b/qpid/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", |