Issue #41338: Return false when compare config fails

This commit is contained in:
Richard Thompson 2017-05-25 15:45:24 +01:00 committed by Richard Thompson
parent 561a416cf3
commit 9b61665c4c

View File

@ -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)