Xiaofeng Ling
2005-Sep-05 04:13 UTC
[Xen-devel] [PATCH][VT]value is not needed for some device model paramters
for device mode parameter:std-vga, localtime, isa, value is not needed. Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com> Signed-off-by: Arun Sharma <arun.sharma@intel.com> diff -r 2be69124cb06 -r c5ba8748d09c tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Mon Sep 5 03:56:13 2005 +++ b/tools/python/xen/xend/image.py Mon Sep 5 03:56:22 2005 @@ -338,12 +338,16 @@ # Handle booleans gracefully if a in [''localtime'', ''std-vga'', ''isa'']: - if v != None: v = int(v) - - log.debug("args: %s, val: %s" % (a,v)) - if v: - ret.append("-%s" % a) - ret.append("%s" % v) + if v != None: + v = int(v) + if v: + ret.append("-%s" % a) + else: + if v: + ret.append("-%s" % a) + ret.append("%s" % v) + log.debug("args: %s, val: %s" % (a,v)) + # Handle disk/network related options devices = sxp.children(self.vm.config, ''device'') _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel