Merge pull request #51491 from terminalmage/issue51268

Don't log shell warning if output_loglevel is quiet
This commit is contained in:
Erik Johnson 2019-02-12 08:22:55 -06:00 committed by GitHub
commit d89c489e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.',