mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Issue #41338: Return false when compare config fails
This commit is contained in:
parent
561a416cf3
commit
9b61665c4c
1 changed files with 5 additions and 0 deletions
|
@ -126,6 +126,11 @@ def _config_logic(loaded_result, test=False, commit_config=True, loaded_config=N
|
|||
if _compare.get('result', False):
|
||||
loaded_result['diff'] = _compare.get('out')
|
||||
loaded_result.pop('out', '') # not needed
|
||||
else:
|
||||
loaded_result['diff'] = None
|
||||
loaded_result['result'] = False
|
||||
loaded_result['comment'] = _compare.get('comment')
|
||||
return loaded_result
|
||||
|
||||
_loaded_res = loaded_result.get('result', False)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue