This appears to be true in general, though the only examples
in AWS documentation appear to be in Transition rules, a
number are found here:
https://docs.aws.amazon.com/AmazonS3/latest/dev/lifecycle-configuration-examples.html
Fixes: https://tracker.ceph.com/issues/38389
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit
b050312adf6b51d3cfa64c155f00880158058249)
bool valid() const {
if (!days.empty() && !date.empty()) {
return false;
- } else if (!days.empty() && get_days() <= 0) {
+ } else if (!days.empty() && get_days() < 0) {
return false;
}
//We've checked date in xml parsing