From c99e79cc58a8cae7304d8c0444d6141993849a48 Mon Sep 17 00:00:00 2001 From: "Issei.M" Date: Wed, 8 May 2019 08:44:08 +0900 Subject: [PATCH] Fix wrong `date_size` skip logic in s3_sync module (#53935) --- lib/ansible/modules/cloud/amazon/s3_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/s3_sync.py b/lib/ansible/modules/cloud/amazon/s3_sync.py index d5975c3b676..8a695e6b45d 100644 --- a/lib/ansible/modules/cloud/amazon/s3_sync.py +++ b/lib/ansible/modules/cloud/amazon/s3_sync.py @@ -436,7 +436,7 @@ def filter_list(s3, bucket, s3filelist, strategy): entry['whytime'] = '{0} / {1}'.format(local_modified_epoch, remote_modified_epoch) entry['whysize'] = '{0} / {1}'.format(local_size, remote_size) - if local_modified_epoch <= remote_modified_epoch or local_size == remote_size: + if local_modified_epoch <= remote_modified_epoch and local_size == remote_size: entry['skip_flag'] = True else: entry['why'] = "no s3_head"