VirtualBox

Changeset 28730 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 26, 2010 7:53:50 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60604
Message:

grammar, show VM state as well

File:
1 edited

Legend:

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

    r28729 r28730  
    648648        else:
    649649            tele = "    "
    650         print "%sMachine '%s' [%s], state=%s" %(tele,colVm(ctx,m.name),m.id,asEnumElem(ctx,"SessionState", m.sessionState))
     650        print "%sMachine '%s' [%s], machineState=%s, sessionState=%s" %(tele,colVm(ctx,m.name),m.id,asEnumElem(ctx, "MachineState", m.state), asEnumElem(ctx,"SessionState", m.sessionState))
    651651    return 0
    652652
     
    712712    if attaches:
    713713        print
    714         print colCat(ctx,"  Mediums:")
     714        print colCat(ctx,"  Media:")
    715715    for a in attaches:
    716716        print "   Controller: '%s' port/device: %d:%d type: %s (%s):" % (a.controller, a.port, a.device, asEnumElem(ctx,"DeviceType", a.type), a.type)
     
    16121612      return int(val)
    16131613
    1614 def listMediumsCmd(ctx,args):
     1614def listMediaCmd(ctx,args):
    16151615   if len(args) > 1:
    16161616      verbose = int(args[1])
     
    21382138            'attachUsb': ['Attach USB device to the VM (use listUsb to show available devices): attachUsb win uuid', attachUsbCmd, 0],
    21392139            'detachUsb': ['Detach USB device from the VM: detachUsb win uuid', detachUsbCmd, 0],
    2140             'listMediums': ['List mediums known to this VBox instance', listMediumsCmd, 0],
     2140            'listMedia': ['List media known to this VBox instance', listMediaCmd, 0],
    21412141            'listUsb': ['List known USB devices', listUsbCmd, 0],
    21422142            'shareFolder': ['Make host\'s folder visible to guest: shareFolder win /share share writable', shareFolderCmd, 0],
Note: See TracChangeset for help on using the changeset viewer.

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