From 08855531099c6d764839b2a15da22f183bf8d78e Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Sat, 7 May 2011 15:31:13 -0400
Subject: [PATCH] Fix dump-properties for non-device-fission devices.

---
 examples/dump-properties.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/examples/dump-properties.py b/examples/dump-properties.py
index 4b8a9be8..92ce7dcb 100644
--- a/examples/dump-properties.py
+++ b/examples/dump-properties.py
@@ -9,7 +9,9 @@ def print_info(obj, info_cls):
             except:
                 info_value = "<error>"
 
-            if info_cls == cl.device_info and info_name == "PARTITION_TYPES_EXT":
+            if (info_cls == cl.device_info and info_name == "PARTITION_TYPES_EXT"
+                    and isinstance(info_value, list)):
+                print info_value
                 print("%s: %s" % (info_name, [
                     cl.device_partition_property_ext.to_string(v) for v in info_value]))
             else:
-- 
GitLab