mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fix backwards compatibility without providing prefix since boto3 does more parameter validation than boto (#45308)
Use .get() instead of assuming a rule has a Transitions or Filter key (both of which are optional)
This commit is contained in:
parent
71c4355d58
commit
8b341619ae
2 changed files with 7 additions and 6 deletions
|
@ -30,7 +30,7 @@
|
|||
s3_lifecycle:
|
||||
name: "{{ resource_prefix }}-testbucket-ansible"
|
||||
expiration_days: 300
|
||||
prefix: /pre
|
||||
prefix: ''
|
||||
<<: *aws_connection_info
|
||||
register: output
|
||||
|
||||
|
@ -42,7 +42,6 @@
|
|||
s3_lifecycle:
|
||||
name: "{{ resource_prefix }}-testbucket-ansible"
|
||||
expiration_days: 300
|
||||
prefix: /pre
|
||||
<<: *aws_connection_info
|
||||
register: output
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue