From f0edf799b78378d66f6cfa6e0a981cbc0da3e5b7 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Wed, 7 Sep 2016 14:24:56 +0200 Subject: [PATCH] Fix Deleting running telnet docker VM shows error in log Fix #662 --- gns3server/modules/docker/docker_vm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gns3server/modules/docker/docker_vm.py b/gns3server/modules/docker/docker_vm.py index 680b150b..5af3ce9e 100644 --- a/gns3server/modules/docker/docker_vm.py +++ b/gns3server/modules/docker/docker_vm.py @@ -530,7 +530,11 @@ class DockerVM(BaseVM): if self._ubridge_hypervisor and self._ubridge_hypervisor.is_running(): yield from self._ubridge_hypervisor.stop() - state = yield from self._get_container_state() + try: + state = yield from self._get_container_state() + except DockerHttp404Error: + state = "stopped" + if state == "paused": yield from self.unpause()