mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-28 19:22:22 +02:00
Merge pull request #2618 from yueguobin/fix-port-nonename-error
feat(virtualbox): add fallback for VBoxManage executable detection
This commit is contained in:
commit
a0116902a6
@ -68,6 +68,8 @@ class VirtualBox(BaseManager):
|
|||||||
vboxmanage_path = vboxmanage_path_osx
|
vboxmanage_path = vboxmanage_path_osx
|
||||||
if not vboxmanage_path:
|
if not vboxmanage_path:
|
||||||
vboxmanage_path = shutil.which("vboxmanage")
|
vboxmanage_path = shutil.which("vboxmanage")
|
||||||
|
if not vboxmanage_path:
|
||||||
|
vboxmanage_path = shutil.which("VBoxManage")
|
||||||
|
|
||||||
if vboxmanage_path and not os.path.exists(vboxmanage_path):
|
if vboxmanage_path and not os.path.exists(vboxmanage_path):
|
||||||
log.error(f"VBoxManage path '{vboxmanage_path}' doesn't exist")
|
log.error(f"VBoxManage path '{vboxmanage_path}' doesn't exist")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user