mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #31689 from rallytime/bp-29467
This commit is contained in:
commit
9162925dd0
1 changed files with 5 additions and 2 deletions
|
@ -232,8 +232,11 @@ def run(name, **kwargs):
|
|||
ret['result'] = mret
|
||||
else:
|
||||
changes_ret = ret['changes'].get('ret', {})
|
||||
if isinstance(changes_ret, dict) and changes_ret.get('retcode', 0) != 0:
|
||||
ret['result'] = False
|
||||
if isinstance(changes_ret, dict):
|
||||
if isinstance(changes_ret.get('result', {}), bool):
|
||||
ret['result'] = changes_ret.get('result', {})
|
||||
elif changes_ret.get('retcode', 0) != 0:
|
||||
ret['result'] = False
|
||||
return ret
|
||||
|
||||
mod_watch = run # pylint: disable=C0103
|
||||
|
|
Loading…
Add table
Reference in a new issue