mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
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.
This commit is contained in:
parent
4503413baa
commit
da44a7f0cb
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue