Skip to content

Commit

Permalink
Fixing the Object-Size and ArchiveZone filter for LC rule
Browse files Browse the repository at this point in the history
Signed-off-by: Vidushi Mishra <[email protected]>
  • Loading branch information
viduship committed May 21, 2024
1 parent 6293e6c commit 7c2de4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rgw/v2/tests/s3cmd/reusable.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,8 @@ def Generate_LC_xml(fileName, config):
rule_filter = xml.SubElement(lc_rule, "Filter")
if config.test_ops.get("test_lc_objects_size"):
filter_and = xml.SubElement(rule_filter, "And")
if config.test_ops.get("test_lc_archive_zone"):
and_archive_zone = xml.SubElement(filter_and, "ArchiveZone")
and_prefix = xml.SubElement(filter_and, "Prefix")
and_ObjectSizeGreaterThan = xml.SubElement(filter_and, "ObjectSizeGreaterThan")
and_ObjectSizeLessThan = xml.SubElement(filter_and, "ObjectSizeLessThan")
Expand Down

0 comments on commit 7c2de4f

Please sign in to comment.