mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
Fix logic mistake in unarchive action plugin
This commit is contained in:
parent
2d11cfab92
commit
e39e8ba308
1 changed files with 5 additions and 5 deletions
|
@ -69,14 +69,14 @@ class ActionModule(ActionBase):
|
||||||
source = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', source)
|
source = self._loader.path_dwim_relative(self._loader.get_basedir(), 'files', source)
|
||||||
|
|
||||||
remote_checksum = self._remote_checksum(dest, all_vars=task_vars)
|
remote_checksum = self._remote_checksum(dest, all_vars=task_vars)
|
||||||
if remote_checksum != '3':
|
if remote_checksum == '4':
|
||||||
result['failed'] = True
|
|
||||||
result['msg'] = "dest '%s' must be an existing dir" % dest
|
|
||||||
return result
|
|
||||||
elif remote_checksum == '4':
|
|
||||||
result['failed'] = True
|
result['failed'] = True
|
||||||
result['msg'] = "python isn't present on the system. Unable to compute checksum"
|
result['msg'] = "python isn't present on the system. Unable to compute checksum"
|
||||||
return result
|
return result
|
||||||
|
elif remote_checksum != '3':
|
||||||
|
result['failed'] = True
|
||||||
|
result['msg'] = "dest '%s' must be an existing dir" % dest
|
||||||
|
return result
|
||||||
|
|
||||||
if copy:
|
if copy:
|
||||||
# transfer the file to a remote tmp location
|
# transfer the file to a remote tmp location
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue