1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-01-11 16:41:04 +00:00

VMware raise error if version is not found

Fix #972
This commit is contained in:
Julien Duponchelle 2016-02-01 14:25:15 +01:00
parent 29089f1884
commit bf316f35cc
No known key found for this signature in database
GPG Key ID: 0898C847450754FB

View File

@ -192,9 +192,11 @@ class VMware(BaseManager):
if int(version) < 6:
raise VMwareError("Using VMware Player requires version 6 or above")
if version is None:
log.warning("Could not find VMware version")
log.warning("Could not find VMware version. Output of VMware: {}".format(output))
raise VMwareError("Could not find VMware version. Output of VMware: {}".format(output))
except (OSError, subprocess.SubprocessError) as e:
log.error("Error while looking for the VMware version: {}".format(e))
raise VMwareError("Error while looking for the VMware version: {}".format(e))
@staticmethod
def _get_vmnet_interfaces_registry():