mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Allow vpcs 0.8b
This commit is contained in:
parent
f1e9262c94
commit
d9f94e653b
@ -196,15 +196,15 @@ class VPCSVM(BaseVM):
|
|||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def _check_vpcs_version(self):
|
def _check_vpcs_version(self):
|
||||||
"""
|
"""
|
||||||
Checks if the VPCS executable version is >= 0.8b1.
|
Checks if the VPCS executable version is >= 0.8b.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
output = yield from subprocess_check_output(self.vpcs_path, "-v", cwd=self.working_dir)
|
output = yield from subprocess_check_output(self.vpcs_path, "-v", cwd=self.working_dir)
|
||||||
match = re.search("Welcome to Virtual PC Simulator, version ([0-9a-z\.]+)", output)
|
match = re.search("Welcome to Virtual PC Simulator, version ([0-9a-z\.]+)", output)
|
||||||
if match:
|
if match:
|
||||||
version = match.group(1)
|
version = match.group(1)
|
||||||
if parse_version(version) < parse_version("0.8b1"):
|
if parse_version(version) < parse_version("0.8b"):
|
||||||
raise VPCSError("VPCS executable version must be >= 0.8b1")
|
raise VPCSError("VPCS executable version must be >= 0.8b")
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user