mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Merge pull request #5088 from EspadaV8/5057_assemble_fix
Correct the invocation of ‘_assemble_from_fragments’
This commit is contained in:
commit
44ca015d87
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class ActionModule(object):
|
||||||
def __init__(self, runner):
|
def __init__(self, runner):
|
||||||
self.runner = runner
|
self.runner = runner
|
||||||
|
|
||||||
def _assemble_from_fragments(src_path, delimiter=None):
|
def _assemble_from_fragments(self, src_path, delimiter=None):
|
||||||
''' assemble a file from a directory of fragments '''
|
''' assemble a file from a directory of fragments '''
|
||||||
tmpfd, temp_path = tempfile.mkstemp()
|
tmpfd, temp_path = tempfile.mkstemp()
|
||||||
tmp = os.fdopen(tmpfd,'w')
|
tmp = os.fdopen(tmpfd,'w')
|
||||||
|
@ -64,7 +64,7 @@ class ActionModule(object):
|
||||||
return self.runner._execute_module(conn, tmp, 'assemble', module_args, inject=inject, complex_args=complex_args)
|
return self.runner._execute_module(conn, tmp, 'assemble', module_args, inject=inject, complex_args=complex_args)
|
||||||
|
|
||||||
# Does all work assembling the file
|
# Does all work assembling the file
|
||||||
path = _assemble_from_fragments(src, delimiter)
|
path = self._assemble_from_fragments(src, delimiter)
|
||||||
|
|
||||||
pathmd5 = utils.md5s(path)
|
pathmd5 = utils.md5s(path)
|
||||||
remote_md5 = self.runner._remote_md5(conn, tmp, dest)
|
remote_md5 = self.runner._remote_md5(conn, tmp, dest)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue