mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-27 16:31:02 +00:00
Fix IOU node start
This commit is contained in:
parent
014d3f2ad9
commit
c820a807ad
@ -572,12 +572,12 @@ class Node:
|
|||||||
Start a node
|
Start a node
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
# For IOU we need to send the licence everytime (if enabled)
|
# For IOU: we need to send the licence everytime we start a node
|
||||||
if self.node_type == "iou":
|
if self.node_type == "iou":
|
||||||
license_check = self._project.controller.iou_license.get("license_check")
|
license_check = self._project.controller.iou_license.get("license_check", True)
|
||||||
iourc_content = self._project.controller.iou_license.get("iourc_content")
|
iourc_content = self._project.controller.iou_license.get("iourc_content", None)
|
||||||
if license_check:
|
await self.post("/start", timeout=240, data={"license_check": license_check, "iourc_content": iourc_content})
|
||||||
data = {"license_check": license_check, "iourc_content": iourc_content}
|
else:
|
||||||
await self.post("/start", data=data, timeout=240)
|
await self.post("/start", data=data, timeout=240)
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
raise ControllerTimeoutError(f"Timeout when starting {self._name}")
|
raise ControllerTimeoutError(f"Timeout when starting {self._name}")
|
||||||
|
Loading…
Reference in New Issue
Block a user