mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-23 14:42:28 +00:00
Do not raise error if vmrun.exe is named vmrun.EXE
This commit is contained in:
parent
bc33683e47
commit
8cb5cedb5d
@ -113,7 +113,7 @@ class VMware(BaseManager):
|
||||
raise VMwareError("vmrun {} is not accessible".format(vmrun_path))
|
||||
if not os.access(vmrun_path, os.X_OK):
|
||||
raise VMwareError("vmrun is not executable")
|
||||
if os.path.basename(vmrun_path) not in ["vmrun", "vmrun.exe"]:
|
||||
if os.path.basename(vmrun_path).lower() not in ["vmrun", "vmrun.exe"]:
|
||||
raise VMwareError("Invalid vmrun executable name {}".format(os.path.basename(vmrun_path)))
|
||||
|
||||
self._vmrun_path = vmrun_path
|
||||
|
Loading…
Reference in New Issue
Block a user