From 5aa9d4d7b98f222f327c05064840b75f535a7d73 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 8 Sep 2015 21:30:22 +0200 Subject: [PATCH] Do not block on .lock for VMware OSX --- gns3server/modules/vmware/vmware_vm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/vmware/vmware_vm.py b/gns3server/modules/vmware/vmware_vm.py index 1aba1a3e..9f922ae3 100644 --- a/gns3server/modules/vmware/vmware_vm.py +++ b/gns3server/modules/vmware/vmware_vm.py @@ -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