mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 22:41:12 +02:00
Update appliance templates from online registry. Ref #2490.
This commit is contained in:
1 parent
a78ee18977
commit
5958a23557
2 files changed
+58
-4
No files matched your search
@@ -37,6 +37,9 @@ class ApplianceHandler:
|
||||
def list_templates(request, response):
|
||||
|
||||
controller = Controller.instance()
|
||||
if request.query.get("update", "no") == "yes":
|
||||
yield from controller.download_appliance_templates()
|
||||
controller.load_appliance_templates()
|
||||
response.json([c for c in controller.appliance_templates.values()])
|
||||
|
||||
@Route.get(
|
||||
|
||||
Reference in new issue
Block a user