From 5345fe84900ab770081c8b91d53b6123b81c1531 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Fri, 25 Mar 2016 15:27:31 +0100 Subject: [PATCH] Minor code cleanup --- gns3server/modules/docker/docker_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/docker/docker_vm.py b/gns3server/modules/docker/docker_vm.py index 56768197..b143b171 100644 --- a/gns3server/modules/docker/docker_vm.py +++ b/gns3server/modules/docker/docker_vm.py @@ -555,10 +555,10 @@ class DockerVM(BaseVM): if not self._ubridge_hypervisor or not self._ubridge_hypervisor.is_running(): return + adapter = self._ethernet_adapters[adapter_number] + yield from self._ubridge_hypervisor.send("bridge delete bridge{name}".format( name=adapter_number)) - - adapter = self._ethernet_adapters[adapter_number] yield from self._ubridge_hypervisor.send('docker delete_veth {hostif}'.format(hostif=adapter.host_ifc)) @asyncio.coroutine