mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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.
This commit is contained in:
parent
8da445b9f4
commit
fba2cc9fa6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue