Add better decoding of network list details
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 29 Nov 2009 19:46:23 +0000 (20:46 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 29 Nov 2009 19:46:23 +0000 (20:46 +0100)
test/list-devices

index 691a6fb..61d8bbc 100755 (executable)
@@ -18,6 +18,12 @@ for path in properties["Devices"]:
        print "[ %s ]" % (path)
 
        for key in properties.keys():
-               print "    %s = %s" % (key, properties[key])
+               if key in ["Networks"]:
+                       val = ""
+                       for i in properties[key]:
+                               val += i + " "
+               else:
+                       val = str(properties[key])
+               print "    %s = %s" % (key, val)
 
        print