mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't log shell warning if output_loglevel is quiet
This will prevent grains generation from logging a bunch of these sort of warnings.
This commit is contained in:
parent
1f6da6a2b7
commit
550e9abfe7
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ def _run(cmd,
|
|||
'''
|
||||
if 'pillar' in kwargs and not pillar_override:
|
||||
pillar_override = kwargs['pillar']
|
||||
if _is_valid_shell(shell) is False:
|
||||
if output_loglevel != 'quiet' and _is_valid_shell(shell) is False:
|
||||
log.warning(
|
||||
'Attempt to run a shell command with what may be an invalid shell! '
|
||||
'Check to ensure that the shell <%s> is valid for this user.',
|
||||
|
|
Loading…
Add table
Reference in a new issue