[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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@xxxxxxxxx>
Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.