From fba2cc9fa67f2da8fe9616804acb31276a057945 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 8 May 2023 17:43:04 -0600 Subject: [PATCH] sysrc.get: be more quiet sysrc.get is frequently used by states like sysrc.absent, where it is expected that the variable will not be present. So don't write errors to the log file. --- salt/modules/sysrc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/modules/sysrc.py b/salt/modules/sysrc.py index 2f7952d59599..25533f8eec8b 100644 --- a/salt/modules/sysrc.py +++ b/salt/modules/sysrc.py @@ -49,7 +49,7 @@ def get(**kwargs): else: cmd += " -a" - sysrcs = __salt__["cmd.run"](cmd) + sysrcs = __salt__["cmd.run"](cmd, output_loglevel="quiet") if "sysrc: unknown variable" in sysrcs: # raise CommandExecutionError(sysrcs) return None