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:
James Mighion 2017-08-07 11:30:10 -04:00 committed by Ricardo Carrillo Cruz
parent 8f4b13de73
commit bdccc2df3c

View file

@ -139,7 +139,6 @@ def load_config(module, commands, warnings, commit=False, replace=False, comment
cmd += ' comment {0}'.format(comment) cmd += ' comment {0}'.format(comment)
else: else:
cmd = 'abort' cmd = 'abort'
diff = None
rc, out, err = exec_command(module, cmd) rc, out, err = exec_command(module, cmd)
if rc != 0: if rc != 0: