Changeset 27894 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 31, 2010 1:29:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r27847 r27894 370 370 else: 371 371 passwd = "" 372 372 373 373 if len(args) > 2: 374 374 maxDowntime = int(args[2]) … … 821 821 if mach.CPUHotPlugEnabled: 822 822 session = ctx['global'].openMachineSession(mach.id) 823 mach1 = session.machine 824 cpu = int(args[2]) 825 print "Adding CPU %d..." %(cpu) 826 mach1.hotPlugCPU(cpu) 827 mach1.saveSettings() 823 try: 824 mach1 = session.machine 825 cpu = int(args[2]) 826 print "Adding CPU %d..." %(cpu) 827 mach1.hotPlugCPU(cpu) 828 mach1.saveSettings() 829 except: 830 session.close() 831 raise 828 832 session.close() 829 833 else: … … 841 845 if mach.CPUHotPlugEnabled: 842 846 session = ctx['global'].openMachineSession(mach.id) 843 mach1 = session.machine 844 cpu = int(args[2]) 845 print "Removing CPU %d..." %(cpu) 846 mach1.hotUnplugCPU(cpu) 847 mach1.saveSettings() 847 try: 848 mach1 = session.machine 849 cpu = int(args[2]) 850 print "Removing CPU %d..." %(cpu) 851 mach1.hotUnplugCPU(cpu) 852 mach1.saveSettings() 853 except: 854 session.close() 855 raise 848 856 session.close() 849 857 else:
Note:
See TracChangeset
for help on using the changeset viewer.