Do not block on .lock for VMware OSX

This commit is contained in:
Julien Duponchelle committed 2015-09-08 21:31:21 +02:00
1 parent 1e722254f7
commit 5aa9d4d7b9
1 file changed
+2 -1
+2 -1
View File
@@ -397,7 +397,8 @@ class VMwareVM(BaseVM):
Starts this VMware VM.
"""
if os.path.exists(self._vmx_path + ".lck"):
# The lock dection is not working on OSX the .lck is never deleted
if os.path.exists(self._vmx_path + ".lck") and not sys.platform.startswith("darwin"):
raise VMwareError("VM locked, it is either running or being edited in VMware")
ubridge_path = self.ubridge_path