From e54832a730e72fcdd213a75c5ec2841557b18762 Mon Sep 17 00:00:00 2001 From: dragon3 Date: Tue, 5 Nov 2013 22:03:40 +0900 Subject: [PATCH] Remove duplicate "download_s3file" execution when the destination path doesn't exist --- library/cloud/s3 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/cloud/s3 b/library/cloud/s3 index 36ddd6ef80..480f4b1b83 100644 --- a/library/cloud/s3 +++ b/library/cloud/s3 @@ -343,10 +343,6 @@ def main(): else: 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. 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)