mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add error check when retcode is 0, but stderr is present
This commit is contained in:
parent
294371243d
commit
47cc7c3466
1 changed files with 2 additions and 0 deletions
|
@ -485,6 +485,8 @@ def info(*packages, **attr):
|
|||
if 'stderr' in call:
|
||||
comment += (call['stderr'] or call['stdout'])
|
||||
raise CommandExecutionError('{0}'.format(comment))
|
||||
elif 'error' in call['stderr']:
|
||||
raise CommandExecutionError(call['stderr'])
|
||||
else:
|
||||
out = call['stdout']
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue