Change behavior when an IOU license is verified. Fixes https://github.com/GNS3/gns3-server/issues/1555

This commit is contained in:
grossmj committed 2019-05-20 10:51:24 +07:00
1 parent e8b8554c1a
commit 28004479fd
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -495,8 +495,8 @@ class Node:
if self.node_type == "iou":
license_check = self._project.controller.iou_license.get("license_check", True)
iourc_content = self._project.controller.iou_license.get("iourc_content", None)
if license_check and not iourc_content:
raise aiohttp.web.HTTPConflict(text="IOU licence is not configured")
#if license_check and not iourc_content:
# raise aiohttp.web.HTTPConflict(text="IOU licence is not configured")
await self.post("/start", timeout=240, data={"license_check": license_check, "iourc_content": iourc_content})
else:
await self.post("/start", data=data, timeout=240)