I think that resultant is meant to be the contents of the combined file

It is used for the transfer and as a diff param but isn’t actually
defined anywhere before it’s used. This seemed like the least bad place
to set it.
pull/5091/head
Andrew Smith 11 years ago
parent 4503413baa
commit da44a7f0cb

@ -71,6 +71,7 @@ class ActionModule(object):
remote_md5 = self.runner._remote_md5(conn, tmp, dest)
if pathmd5 != remote_md5:
resultant = file(path).read()
if self.runner.diff:
dest_result = self.runner._execute_module(conn, tmp, 'slurp', "path=%s" % dest, inject=inject, persist_files=True)
if 'content' in dest_result.result:

Loading…
Cancel
Save