1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-19 23:08:09 +00:00

Fix version check for VPCS

This commit is contained in:
Julien Duponchelle 2017-01-23 21:11:52 +01:00
parent a24490930f
commit 1ed88eda85
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -222,8 +222,8 @@ class VPCSVM(BaseNode):
if match: if match:
version = match.group(1) version = match.group(1)
self._vpcs_version = parse_version(version) self._vpcs_version = parse_version(version)
if self._vpcs_version < parse_version("0.8b") and self._vpcs_version != parse_version("0.6.1"): if self._vpcs_version < parse_version("0.6.1"):
raise VPCSError("VPCS executable version must be >= 0.8b or 0.6.1") raise VPCSError("VPCS executable version must be >= 0.6.1 but not a 0.8")
else: else:
raise VPCSError("Could not determine the VPCS version for {}".format(self.vpcs_path)) raise VPCSError("Could not determine the VPCS version for {}".format(self.vpcs_path))
except (OSError, subprocess.SubprocessError) as e: except (OSError, subprocess.SubprocessError) as e: