Commit 7f484b7d authored by Denis Bilenko's avatar Denis Bilenko

virtualbox.py: do restore state if it was "saved" initially

parent f173947b
......@@ -146,6 +146,8 @@ class VirtualBox(object):
def stop(self):
if self.initial_state == 'paused':
self.pause()
elif self.initial_state == 'saved':
self.restore()
elif self.initial_state != 'running':
self.poweroff()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment