Changeset 31112 in vbox for trunk/src/VBox/Frontends/VBoxShell
- Timestamp:
- Jul 26, 2010 12:35:26 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64067
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r31071 r31112 245 245 traceback.print_exc() 246 246 # if session not opened, close doesn't make sense 247 session. close()247 session.unlockMachine() 248 248 else: 249 249 reportError(ctx,progress) … … 499 499 if session.state != ctx['const'].SessionState_Locked: 500 500 print "Session to '%s' in wrong state: %s" %(mach.name, session.state) 501 session. close()501 session.unlockMachine() 502 502 return 503 503 # this could be an example how to handle local only (i.e. unavailable … … 505 505 if ctx['remote'] and cmd == 'some_local_only_command': 506 506 print 'Trying to use local only functionality, ignored' 507 session. close()507 session.unlockMachine() 508 508 return 509 509 console=session.console … … 531 531 traceback.print_exc() 532 532 533 session. close()533 session.unlockMachine() 534 534 535 535 … … 1362 1362 1363 1363 mach.saveSettings() 1364 session. close()1364 session.unlockMachine() 1365 1365 1366 1366 return 0 … … 2541 2541 if rc == 0: 2542 2542 mach.saveSettings() 2543 session. close()2543 session.unlockMachine() 2544 2544 elif report is not None: 2545 2545 for r in report: … … 2717 2717 if report is not None: 2718 2718 print '%s nic %d %s: %s' % (vm.name, nicnum, args[3], report) 2719 session. close()2719 session.unlockMachine() 2720 2720 return 0 2721 2721
Note:
See TracChangeset
for help on using the changeset viewer.