Changeset 19602 in vbox
- Timestamp:
- May 12, 2009 10:33:51 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 47175
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/shellcommon.py
r19320 r19602 154 154 print "created machine with UUID",mach.id 155 155 vb.registerMachine(mach) 156 session.close() 156 157 157 158 def removeVm(ctx,mach): 158 159 mgr = ctx['mgr'] 159 160 vb = ctx['vb'] 160 print "removing machine ",mach.name,"with UUID",mach.id 161 mach = vb.unregisterMachine(mach.id) 161 id = mach.id 162 print "removing machine ",mach.name,"with UUID",id 163 session = ctx['mgr'].getSessionObject(vb) 164 vb.openSession(session, id) 165 mach=session.machine 166 for d in mach.getHardDiskAttachments(): 167 mach.detachHardDisk(d.controller, d.port, d.device) 168 session.close() 169 mach = vb.unregisterMachine(id) 162 170 if mach: 163 171 mach.deleteSettings()
Note:
See TracChangeset
for help on using the changeset viewer.