[virt-tools-list] [PATCH] osdict: fix default value for devices data

Giuseppe Scrivano gscrivan at redhat.com
Wed May 21 08:23:01 UTC 2014


commit 4f056dcba97bc337dcd35fe0cfb62417ac09d036 didn't take into
account the default value.

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
FYI, pushed as trivial and due to the fact that the installer was
broken for some OSes

 virtinst/osdict.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/osdict.py b/virtinst/osdict.py
index 7ffecb1..f9fb058 100644
--- a/virtinst/osdict.py
+++ b/virtinst/osdict.py
@@ -578,7 +578,7 @@ def lookup_osdict_key(variant, key, default):
             raise ValueError("Unknown osdict property '%s'" % key)
         val = getattr(os, key)
         if isfunction(val):
-            return val()
+            val = val()
     if val == _SENTINEL:
         val = default
     return val
-- 
1.9.0




More information about the virt-tools-list mailing list