VirtualBox

Changeset 59490 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 27, 2016 12:33:47 PM (9 years ago)
Author:
vboxsync
Message:

Frontends/vboxshell.py: webservice API does not allow specifying None for a string parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r57528 r59490  
    14441444    key = args[0]
    14451445    value = args[1]
    1446     print "%s: setting %s to %s" % (mach.name, key, value)
     1446    print "%s: setting %s to %s" % (mach.name, key, value if value else None)
    14471447    mach.setExtraData(key, value)
    14481448
     
    14551455        value = args[3]
    14561456    else:
    1457         value = None
     1457        value = ''
    14581458    if args[1] == 'global':
    14591459        ctx['vb'].setExtraData(key, value)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette