mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Correct the invocation of ‘_assemble_from_fragments’
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user