Fix Deleting running telnet docker VM shows error in log

Fix #662
This commit is contained in:
Julien Duponchelle committed 2016-09-07 14:24:56 +02:00
1 parent a7be4681d5
commit f0edf799b7
1 file changed
+5 -1
+5 -1
View File
@@ -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()