mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
Fix pep8 errors in unarchive module
This commit is contained in:
parent
52032b80d4
commit
e81c976636
2 changed files with 6 additions and 6 deletions
|
@ -55,14 +55,14 @@ class ActionModule(object):
|
|||
|
||||
source = template.template(self.runner.basedir, source, inject)
|
||||
if '_original_file' in inject:
|
||||
source = utils.path_dwim_relative(inject['_original_file'], 'files', source, self.runner.basedir)
|
||||
source = utils.path_dwim_relative(inject['_original_file'], 'files', source, self.runner.basedir)
|
||||
else:
|
||||
source = utils.path_dwim(self.runner.basedir, source)
|
||||
source = utils.path_dwim(self.runner.basedir, source)
|
||||
|
||||
remote_md5 = self.runner._remote_md5(conn, tmp, dest)
|
||||
if remote_md5 != '3':
|
||||
result = dict(failed=True, msg="dest must be an existing dir")
|
||||
return ReturnData(conn=conn, result=result)
|
||||
result = dict(failed=True, msg="dest must be an existing dir")
|
||||
return ReturnData(conn=conn, result=result)
|
||||
|
||||
# transfer the file to a remote tmp location
|
||||
tmp_src = tmp + 'source'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue