🐛 SWU: Fix issue with check config persistence from plugins

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
This commit is contained in:
Gina Häußge committed 2020-10-14 12:24:45 +02:00
1 parent b96f7657e6
commit e7d037d3d4
1 file changed
+1 -1
@@ -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(