mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix-35384, fix the logic caused by wrong indent (#35566)
This commit is contained in:
parent
feb852f8c0
commit
2a5d1a0eee
1 changed files with 4 additions and 4 deletions
|
@ -363,10 +363,10 @@ def mod_run_check(cmd_kwargs, onlyif, unless, group, creates):
|
|||
for entry in unless:
|
||||
cmd.append(__salt__['cmd.retcode'](entry, ignore_retcode=True, python_shell=True, **cmd_kwargs))
|
||||
log.debug('Last command return code: {0}'.format(cmd))
|
||||
if all([c == 0 for c in cmd]):
|
||||
return {'comment': 'unless execution succeeded',
|
||||
'skip_watch': True,
|
||||
'result': True}
|
||||
if all([c == 0 for c in cmd]):
|
||||
return {'comment': 'unless execution succeeded',
|
||||
'skip_watch': True,
|
||||
'result': True}
|
||||
elif not isinstance(unless, string_types):
|
||||
if unless:
|
||||
log.debug('Command not run: unless did not evaluate to string_type')
|
||||
|
|
Loading…
Add table
Reference in a new issue