qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1538694 - /qpid/trunk/qpid/tools/src/py/qpid-config
Date Mon, 04 Nov 2013 17:51:04 GMT
Author: gsim
Date: Mon Nov  4 17:51:04 2013
New Revision: 1538694

URL: http://svn.apache.org/r1538694
Log:
QPID-5277: handle case where objects do not all have value for given property

Modified:
    qpid/trunk/qpid/tools/src/py/qpid-config

Modified: qpid/trunk/qpid/tools/src/py/qpid-config
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/tools/src/py/qpid-config?rev=1538694&r1=1538693&r2=1538694&view=diff
==============================================================================
--- qpid/trunk/qpid/tools/src/py/qpid-config (original)
+++ qpid/trunk/qpid/tools/src/py/qpid-config Mon Nov  4 17:51:04 2013
@@ -806,7 +806,7 @@ def main(argv=None):
                 # display
                 display = Display(prefix="  ")
                 headers = [Header(a) for a in desired]
-                rows = [tuple([_clean_ref(o[a]) for a in desired]) for o in objects]
+                rows = [tuple([_clean_ref(o.get(a, "n/a")) for a in desired]) for o in objects]
                 display.formattedTable("Objects of type '%s'" % modifier, headers, rows)
 
             else:



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message