Commit da44a7f0 by Andrew Smith

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.
parent 4503413b
...@@ -71,6 +71,7 @@ class ActionModule(object): ...@@ -71,6 +71,7 @@ class ActionModule(object):
remote_md5 = self.runner._remote_md5(conn, tmp, dest) remote_md5 = self.runner._remote_md5(conn, tmp, dest)
if pathmd5 != remote_md5: if pathmd5 != remote_md5:
resultant = file(path).read()
if self.runner.diff: if self.runner.diff:
dest_result = self.runner._execute_module(conn, tmp, 'slurp', "path=%s" % dest, inject=inject, persist_files=True) dest_result = self.runner._execute_module(conn, tmp, 'slurp', "path=%s" % dest, inject=inject, persist_files=True)
if 'content' in dest_result.result: if 'content' in dest_result.result:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment