mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Issue #41338: Return false when compare config fails
This commit is contained in:
parent
561a416cf3
commit
9b61665c4c
@ -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…
Reference in New Issue
Block a user