Skip to content

Commit

Permalink
Handle API version key in VirtualBox 7. Fixes #2266
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Aug 9, 2023
1 parent df9d642 commit 77744cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gns3server/controller/gns3vm/virtualbox_gns3_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ async def _get_system_properties(self):
except ValueError:
continue
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):
"""
Expand Down

0 comments on commit 77744cc

Please sign in to comment.