mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix an issue for passing arguement from control panel to deivce model
for some arguemnt like 'localtime', 'isa', device model need an argument "-localtime", instead of "-localtime 1" Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
This commit is contained in:
1 parent
74df472110
commit
9329e6405d
1 file changed
+5
-4
@@ -243,11 +243,12 @@ class VmxImageHandler(ImageHandler):
|
||||
# Handle booleans gracefully
|
||||
if a in ['localtime', 'std-vga', 'isa', 'nic-ne2000']:
|
||||
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))
|
||||
if v:
|
||||
ret.append("-%s" % a)
|
||||
ret.append("%s" % v)
|
||||
|
||||
# Handle disk/network related options
|
||||
for (name, info) in deviceConfig:
|
||||
|
||||