🐛 CLI: Force set values on the config CLI

We don't initialize the settings plugins (and we don't want to change
that either since it's a TON of potentially error prone overhead just
to allow a glorified editing of a yaml file), so we now can force
values even if their paths are unknown to OctoPrint. Can be abused to
clutter config.yaml, but so can plugins.

Closes #3869
This commit is contained in:
Gina Häußge committed 2020-12-08 16:09:45 +01:00
1 parent ade3a772e4
commit 8a7a436ee9
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ def _set_helper(settings, path, value, data_type=None):
if name is not None:
method = getattr(settings, name)
method(path, value)
method(path, value, force=True)
settings.save()