Commits

Denis Bilenko committed 0df167e

virtualbox.py: allow poweroff to fail

Comments (0)

Files changed (1)

util/virtualbox.py

         vbox_startvm(name, type)
     else:
         print 'Weird state: %r' % state
-        vbox_poweroff(name)
+        vbox_poweroff(name, fail=False)
         vbox_startvm(name, type)
     return state
 
     system('VBoxManage controlvm %s pause' % name)
 
 
-def vbox_poweroff(name):
-    system('VBoxManage controlvm %s poweroff' % name)
+def vbox_poweroff(name, **kwargs):
+    system('VBoxManage controlvm %s poweroff' % name, **kwargs)
 
 
 def vbox_restorecurrent(name):