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:
kaf24@firebug.cl.cam.ac.uk committed 2005-10-23 16:51:47 +01:00
1 parent 74df472110
commit 9329e6405d
1 file changed
+5 -4
+5 -4
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.