* [PATCH][VT]value is not needed for some device model paramters
@ 2005-09-05 4:13 Xiaofeng Ling
0 siblings, 0 replies; only message in thread
From: Xiaofeng Ling @ 2005-09-05 4:13 UTC (permalink / raw)
To: Ian Pratt, Keir Fraser; +Cc: xen-devel
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')
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-05 4:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-05 4:13 [PATCH][VT]value is not needed for some device model paramters Xiaofeng Ling
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.