mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-13 04:11:00 +00:00
Keep the diff even when running in check mode so we can tell if there is a diff or changed is true. (#27713)
This commit is contained in:
committed by
Ricardo Carrillo Cruz
parent
8f4b13de73
commit
bdccc2df3c
@@ -139,7 +139,6 @@ def load_config(module, commands, warnings, commit=False, replace=False, comment
|
||||
cmd += ' comment {0}'.format(comment)
|
||||
else:
|
||||
cmd = 'abort'
|
||||
diff = None
|
||||
|
||||
rc, out, err = exec_command(module, cmd)
|
||||
if rc != 0:
|
||||
|
||||
Reference in New Issue
Block a user