mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix unhandled KeyError exception when starting Docker container. Ref #1991
This commit is contained in:
1 parent
1067e60284
commit
b1a62dfdc2
2 files changed
+2
-2
No files matched your search
@@ -111,7 +111,7 @@ class Docker(BaseManager):
|
||||
body = await response.read()
|
||||
response.close()
|
||||
if body and len(body):
|
||||
if response.headers['CONTENT-TYPE'] == 'application/json':
|
||||
if response.headers.get('CONTENT-TYPE') == 'application/json':
|
||||
body = json.loads(body.decode("utf-8"))
|
||||
else:
|
||||
body = body.decode("utf-8")
|
||||
|
||||
@@ -94,7 +94,7 @@ class DockerVM(BaseNode):
|
||||
self._console_websocket = None
|
||||
self._extra_hosts = extra_hosts
|
||||
self._extra_volumes = extra_volumes or []
|
||||
self._permissions_fixed = False
|
||||
self._permissions_fixed = True
|
||||
self._display = None
|
||||
self._closing = False
|
||||
|
||||
|
||||
Reference in new issue
Block a user