Keep the diff even when running in check mode so we can tell if there is a diff or changed is true. (#27713)

pull/26981/merge
James Mighion 7 years ago 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:

Loading…
Cancel
Save