Changeset 20149 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 29, 2009 12:30:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/shellcommon.py
r19901 r20149 175 175 id = mach.id 176 176 print "removing machine ",mach.name,"with UUID",id 177 session = mgr.getSessionObject(vb) 178 vb.openSession(session, id) 177 session = ctx['global'].openMachineSession(id) 179 178 mach=session.machine 180 179 for d in mach.getHardDiskAttachments(): 181 180 mach.detachHardDisk(d.controller, d.port, d.device) 182 session.close()181 ctx['global'].closeMachineSession(session) 183 182 mach = vb.unregisterMachine(id) 184 183 if mach: … … 416 415 if mach == None: 417 416 return 0 418 vbox = ctx['vb']419 417 session = ctx['mgr'].getSessionObject(vbox) 420 418 vbox.openSession(session, mach.id)
Note:
See TracChangeset
for help on using the changeset viewer.