1
0
mirror of https://github.com/GNS3/gns3-server synced 2025-03-08 04:36:15 +00:00

Fix UnboundLocalError: local variable 'vmname' referenced before assignment

Fix #868
This commit is contained in:
Julien Duponchelle 2017-01-18 09:39:27 +01:00
parent c9f3ea4489
commit 47c58bb400
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -192,6 +192,7 @@ class Controller:
password=remote.get("password")
)
if "vm" in server_settings:
vmname = None
vm_settings = server_settings["vm"]
if vm_settings["virtualization"] == "VMware":
engine = "vmware"