From 47c58bb4006b6bf4a469f8aa344c66be4dfd4ab6 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 18 Jan 2017 09:39:27 +0100 Subject: [PATCH] Fix UnboundLocalError: local variable 'vmname' referenced before assignment Fix #868 --- gns3server/controller/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 8d227568..295e6762 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -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"