From e7d037d3d41ee816ed634d6cbd3b2b19bb2c86d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 14 Oct 2020 12:24:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20SWU:=20Fix=20issue=20with=20chec?= =?UTF-8?q?k=20config=20persistence=20from=20plugins?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we want to be able to in-place overlay the effective config, we MUST do a deepcopy of the default or we'll actually operate on the default, effectively leading to any changes to plugin check configs to be cleaned up from the config file. Closes #3765 Closes #3767 --- src/octoprint/plugins/softwareupdate/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index 4f21a3f81..1b5f99c27 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -222,7 +222,7 @@ class SoftwareUpdatePlugin( check_providers[key] = name yaml_config = {} - effective_config = default_config + effective_config = copy.deepcopy(default_config) if key in overlays: effective_config = dict_merge(