1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-05-21 16:28:54 +00:00

Merge branch 'master' into 2.2

This commit is contained in:
grossmj 2025-05-13 20:48:59 +02:00
commit ef3570dc95
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -225,7 +225,7 @@ class QemuVM(BaseNode):
if qemu_bin == "qemu":
self._platform = "i386"
else:
self._platform = re.sub(r'^qemu-system-(\w+).*$', r'\1', qemu_bin, 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:
raise QemuError("Platform {} is unknown".format(self._platform))
log.info('QEMU VM "{name}" [{id}] has set the QEMU path to {qemu_path}'.format(name=self._name,