diff --git a/storage-lifecycle-service/sls/cloud/s3_cloud.py b/storage-lifecycle-service/sls/cloud/s3_cloud.py index 89a1bacec0..a0bbfc7048 100644 --- a/storage-lifecycle-service/sls/cloud/s3_cloud.py +++ b/storage-lifecycle-service/sls/cloud/s3_cloud.py @@ -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))