VirtualBox

Changeset 29537 in vbox for trunk


Ignore:
Timestamp:
May 17, 2010 12:04:10 PM (15 years ago)
Author:
vboxsync
Message:

python shell: only running VM to be used here

File:
1 edited

Legend:

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

    r29524 r29537  
    191191                    matches.append(word)
    192192
    193 
    194193        try:
    195194            for m in getMachines(self.ctx, False, True):
     
    525524
    526525def cmdExistingVm(ctx,mach,cmd,args):
     526    session = None
    527527    try:
    528         session = ctx['global'].openMachineSession(mach.id)
     528        vb = ctx['vb']
     529        session = ctx['mgr'].getSessionObject(vb)
     530        vb.openExistingSession(session, mach.id)
    529531    except Exception,e:
    530532        printErr(ctx, "Session to '%s' not open: %s" %(mach.name,str(e)))
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