From 3c2ae5363c03a3ab2bd938900ceb4aa92468d998 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 17 Jan 2023 13:39:01 +0800 Subject: [PATCH] Install built-in appliances when no previous version has been detected. Fixes #2168 --- gns3server/controller/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/__init__.py b/gns3server/controller/__init__.py index 9f947673..84e02ce9 100644 --- a/gns3server/controller/__init__.py +++ b/gns3server/controller/__init__.py @@ -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")