Skip to content

Commit

Permalink
s3_lifecycle: support value '0' for transition_days
Browse files Browse the repository at this point in the history
  • Loading branch information
fmenabe committed Apr 19, 2022
1 parent 8d80e9a commit 8f0f3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/modules/s3_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8f0f3cb

Please sign in to comment.