mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
Install built-in appliances when no previous version has been detected. Fixes #2168
This commit is contained in:
parent
24d1aeee32
commit
3c2ae5363c
@ -248,7 +248,8 @@ class Controller:
|
||||
if "iou_license" in controller_settings:
|
||||
self._iou_license_settings = controller_settings["iou_license"]
|
||||
|
||||
if parse_version(__version__) > parse_version(controller_settings.get("version", "")):
|
||||
previous_version = controller_settings.get("version")
|
||||
if not previous_version or parse_version(__version__) > parse_version(previous_version):
|
||||
self._appliance_manager.install_builtin_appliances()
|
||||
|
||||
self._appliance_manager.appliances_etag = controller_settings.get("appliances_etag")
|
||||
|
Loading…
Reference in New Issue
Block a user