mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 07:26:29 +00:00
Don't try unlocking the machine before locking it
If it's already locked, that should be an error.
This commit is contained in:
parent
0fe3c9e984
commit
7ef88d284d
1 changed files with 0 additions and 1 deletions
|
@ -115,7 +115,6 @@ class VirtualBoxInstance(Instance):
|
||||||
return self.unlock()
|
return self.unlock()
|
||||||
|
|
||||||
def lock(self):
|
def lock(self):
|
||||||
self.unlock()
|
|
||||||
self.machine.lock_machine(self.session, vboxapi.library.LockType.write)
|
self.machine.lock_machine(self.session, vboxapi.library.LockType.write)
|
||||||
return self.session.machine
|
return self.session.machine
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue