mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Correct the invocation of ‘_assemble_from_fragments’
This commit is contained in:
parent
920bc6e75b
commit
7d007cac16
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…
Reference in a new issue