mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 16:36:29 +00: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user