mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-03 07:00:20 -07:00
Fix wrong date_size
skip logic in s3_sync module (#53935)
This commit is contained in:
parent
38890ddcaf
commit
c99e79cc58
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ def filter_list(s3, bucket, s3filelist, strategy):
|
||||||
entry['whytime'] = '{0} / {1}'.format(local_modified_epoch, remote_modified_epoch)
|
entry['whytime'] = '{0} / {1}'.format(local_modified_epoch, remote_modified_epoch)
|
||||||
entry['whysize'] = '{0} / {1}'.format(local_size, remote_size)
|
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
|
entry['skip_flag'] = True
|
||||||
else:
|
else:
|
||||||
entry['why'] = "no s3_head"
|
entry['why'] = "no s3_head"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue