mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 19:28:07 +00:00
Fix reading response embedded in ComputeConflictError
This commit is contained in:
parent
944a72254c
commit
85cdd7d9a5
@ -405,8 +405,9 @@ class Node:
|
|||||||
f"/projects/{self._project.id}/{self._node_type}/nodes", data=data, timeout=timeout
|
f"/projects/{self._project.id}/{self._node_type}/nodes", data=data, timeout=timeout
|
||||||
)
|
)
|
||||||
except ComputeConflictError as e:
|
except ComputeConflictError as e:
|
||||||
if e.response.get("exception") == "ImageMissingError":
|
response = e.response()
|
||||||
res = await self._upload_missing_image(self._node_type, e.response["image"])
|
if response.get("exception") == "ImageMissingError":
|
||||||
|
res = await self._upload_missing_image(self._node_type, response["image"])
|
||||||
if not res:
|
if not res:
|
||||||
raise e
|
raise e
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user