mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-19 06:48:10 +00:00
Send an error when vmware executable cannot be found on Linux. Fixes #288.
This commit is contained in:
parent
5121753232
commit
05ab18f295
@ -172,6 +172,9 @@ class VMware(BaseManager):
|
||||
else:
|
||||
vmware_path = shutil.which("vmware")
|
||||
|
||||
if vmware_path is None:
|
||||
raise VMwareError("VMware is not installed (vmware executable could not be found in $PATH)")
|
||||
|
||||
try:
|
||||
output = yield from subprocess_check_output(vmware_path, "-v")
|
||||
match = re.search("VMware Workstation ([0-9]+)\.", output)
|
||||
|
Loading…
Reference in New Issue
Block a user