From 1fb4d191c903f8f99273f985e3b9cc698fec1016 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Thu, 11 Feb 2016 09:02:38 +0100 Subject: [PATCH] Fix number of arguments to the UDP errors on VBOX --- gns3server/modules/virtualbox/virtualbox_vm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py index 526f7e64..a3748414 100644 --- a/gns3server/modules/virtualbox/virtualbox_vm.py +++ b/gns3server/modules/virtualbox/virtualbox_vm.py @@ -883,9 +883,9 @@ class VirtualBoxVM(BaseVM): # check if the UDP tunnel has been correctly set vm_info = yield from self._get_vm_info() generic_driver_number = "generic{}".format(adapter_number + 1) - if not generic_driver_number in vm_info and vm_info[generic_driver_number] != "UDPTunnel": - log.warning("UDP tunnel has not been set on nic: {}\n{}".format(adapter_number + 1)) - self.project.emit("log.warning", {"message": "UDP tunnel has not been set on nic: {}\n{}".format(adapter_number + 1)}) + if generic_driver_number not in vm_info and vm_info[generic_driver_number] != "UDPTunnel": + log.warning("UDP tunnel has not been set on nic: {}".format(adapter_number + 1)) + self.project.emit("log.warning", {"message": "UDP tunnel has not been set on nic: {}".format(adapter_number + 1)}) elif isinstance(nio, NIONAT): yield from self._control_vm("nic{} nat".format(adapter_number + 1))