1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-10-31 20:58:56 +00:00

Handle API version key in VirtualBox 7. Fixes #2266

This commit is contained in:
grossmj 2023-08-09 20:51:53 +10:00
parent df9d642a56
commit 77744cc31d

View File

@ -80,6 +80,9 @@ class VirtualBoxGNS3VM(BaseGNS3VM):
except ValueError: except ValueError:
continue continue
self._system_properties[name.strip()] = value.strip() self._system_properties[name.strip()] = value.strip()
if "API Version" in self._system_properties:
# API version is not consistent between VirtualBox versions, the key is named "API Version" in VirtualBox 7
self._system_properties["API version"] = self._system_properties.pop("API Version")
async def _check_requirements(self): async def _check_requirements(self):
""" """