mirror of
https://github.com/GNS3/gns3-server
synced 2025-08-05 05:15:23 +00:00
Fix tests
This commit is contained in:
parent
df576f0668
commit
f2080979a1
@ -267,7 +267,7 @@ class QemuVM(BaseNode):
|
|||||||
self._platform = "i386"
|
self._platform = "i386"
|
||||||
else:
|
else:
|
||||||
self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, flags=re.IGNORECASE)
|
self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, flags=re.IGNORECASE)
|
||||||
if self._platform.split(".")[0] not in QEMU_PLATFORMS:
|
if self._platform.split(".")[0] not in QemuPlatform:
|
||||||
raise QemuError(f"Platform {self._platform} is unknown")
|
raise QemuError(f"Platform {self._platform} is unknown")
|
||||||
log.info(f'QEMU VM "{self._name}" [{self._name}] has set the QEMU path to {qemu_path}')
|
log.info(f'QEMU VM "{self._name}" [{self._name}] has set the QEMU path to {qemu_path}')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user