diff --git a/plugins/modules/s3_lifecycle.py b/plugins/modules/s3_lifecycle.py index c12ce6b0897..4e41149000b 100644 --- a/plugins/modules/s3_lifecycle.py +++ b/plugins/modules/s3_lifecycle.py @@ -314,7 +314,7 @@ def build_rule(client, module): t_out = dict() if transition.get('transition_date'): t_out['Date'] = transition['transition_date'] - elif transition.get('transition_days'): + elif transition.get('transition_days') is not None: t_out['Days'] = transition['transition_days'] if transition.get('storage_class'): t_out['StorageClass'] = transition['storage_class'].upper()