mirror of
https://github.com/gryf/boxpy.git
synced 2025-12-19 13:37:58 +01:00
Remove silent parameter for poweroff.
This commit is contained in:
6
box.py
6
box.py
@@ -608,7 +608,7 @@ class VBoxManage:
|
|||||||
|
|
||||||
return self.vm_info
|
return self.vm_info
|
||||||
|
|
||||||
def poweroff(self, silent=False):
|
def poweroff(self):
|
||||||
Run(['vboxmanage', 'controlvm', self.name_or_uuid, 'poweroff'])
|
Run(['vboxmanage', 'controlvm', self.name_or_uuid, 'poweroff'])
|
||||||
|
|
||||||
def vmlist(self, only_running=False, long_list=False):
|
def vmlist(self, only_running=False, long_list=False):
|
||||||
@@ -626,7 +626,7 @@ class VBoxManage:
|
|||||||
self.name_or_uuid)
|
self.name_or_uuid)
|
||||||
return 4
|
return 4
|
||||||
|
|
||||||
self.poweroff(silent=True)
|
self.poweroff()
|
||||||
time.sleep(1) # wait a bit, for VM shutdown to complete
|
time.sleep(1) # wait a bit, for VM shutdown to complete
|
||||||
# detach cloud image.
|
# detach cloud image.
|
||||||
self.storageattach('IDE', 1, 'dvddrive', 'none')
|
self.storageattach('IDE', 1, 'dvddrive', 'none')
|
||||||
@@ -1214,7 +1214,7 @@ def vmrebuild(args):
|
|||||||
except BoxNotFound:
|
except BoxNotFound:
|
||||||
return 8
|
return 8
|
||||||
|
|
||||||
vbox.poweroff(silent=True)
|
vbox.poweroff()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
disk_path = vbox.get_disk_path()
|
disk_path = vbox.get_disk_path()
|
||||||
|
|||||||
Reference in New Issue
Block a user