From b84f8cb4064f6b5fb0c1fa63d2747f39e2a0f806 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 21 May 2014 09:31:22 +0200 Subject: [PATCH] osdict: fix default value for devices data commit 4f056dcba97bc337dcd35fe0cfb62417ac09d036 didn't take into account the default value. Signed-off-by: Giuseppe Scrivano --- virtinst/osdict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/osdict.py b/virtinst/osdict.py index 7ffecb134..f9fb0580f 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