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

pull/4420/head
James Mighion 2017-08-07 11:30:10 -04:00 committed by Ricardo Carrillo Cruz
parent 8f4b13de73
commit bdccc2df3c
1 changed files with 0 additions and 1 deletions

View File

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