VMware raise error if version is not found

Fix #972
This commit is contained in:
Julien Duponchelle committed 2016-02-01 14:26:55 +01:00
1 parent 29089f1884
commit bf316f35cc
1 file changed
+3 -1
+3 -1
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():