Merge pull request #6615 from 8191/devel

Addresses #6591 Hide diff for lineinfile if file did not change.
pull/6614/merge
Michael DeHaan 11 years ago
commit d0cbb51170

@ -123,6 +123,7 @@ class ActionModule(object):
return ReturnData(conn=conn, comm_ok=True, result=dict(changed=True), diff=dict(before_header=dest, after_header=source, before=dest_contents, after=resultant))
else:
res = self.runner._execute_module(conn, tmp, 'copy', module_args, inject=inject, complex_args=complex_args)
if res.result['changed']:
res.diff = dict(before=dest_contents, after=resultant)
return res
else:

Loading…
Cancel
Save