From 8a7a436ee96c477362d33e134a02a1dbdd6f0705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 8 Dec 2020 16:09:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20CLI:=20Force=20set=20values=20on?= =?UTF-8?q?=20the=20config=20CLI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/octoprint/cli/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/cli/config.py b/src/octoprint/cli/config.py index 9468992ee..c45e56394 100644 --- a/src/octoprint/cli/config.py +++ b/src/octoprint/cli/config.py @@ -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()