Skip to content

Commit

Permalink
Issue #3753 SLS: fix for function prepare_bucket_if_needed - add old …
Browse files Browse the repository at this point in the history
…lifecycle rule to the list of new rules to apply if it matches a new one
  • Loading branch information
SilinPavel committed Oct 25, 2024
1 parent f1d5fa3 commit 236afd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage-lifecycle-service/sls/cloud/s3_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def _finetune_rule(_object_size_for_transit, _rule):
if not old_rule or old_rule != new_rule:
slc_rules_to_apply.append(new_rule)
s3_lsc_rules_should_be_updated = True
else:
slc_rules_to_apply.append(old_rule)

if s3_lsc_rules_should_be_updated:
self.logger.log("S3 Lifecycle rules for storage: {}, will be updated.".format(bucket))
Expand Down

0 comments on commit 236afd2

Please sign in to comment.