1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-15 12:59:06 +00:00

Do not block on .lock for VMware OSX

This commit is contained in:
Julien Duponchelle 2015-09-08 21:30:22 +02:00
parent 1e722254f7
commit 5aa9d4d7b9

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