mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove duplicate "download_s3file" execution when the destination path doesn't exist
This commit is contained in:
parent
b87e0e598e
commit
e54832a730
1 changed files with 0 additions and 4 deletions
|
@ -343,10 +343,6 @@ def main():
|
||||||
else:
|
else:
|
||||||
module.fail_json(msg="WARNING: Checksums do not match. Use overwrite parameter to force download.", failed=True)
|
module.fail_json(msg="WARNING: Checksums do not match. Use overwrite parameter to force download.", failed=True)
|
||||||
|
|
||||||
# If destination file doesn't already exist we can go ahead and download.
|
|
||||||
if pathrtn is False:
|
|
||||||
download_s3file(module, s3, bucket, obj, dest)
|
|
||||||
|
|
||||||
# Firstly, if key_matches is TRUE and overwrite is not enabled, we EXIT with a helpful message.
|
# Firstly, if key_matches is TRUE and overwrite is not enabled, we EXIT with a helpful message.
|
||||||
if sum_matches is True and overwrite is False:
|
if sum_matches is True and overwrite is False:
|
||||||
module.exit_json(msg="Local and remote object are identical, ignoring. Use overwrite parameter to force.", changed=False)
|
module.exit_json(msg="Local and remote object are identical, ignoring. Use overwrite parameter to force.", changed=False)
|
||||||
|
|
Loading…
Reference in a new issue