mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00: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:
committed by
Ryan Brown
parent
71c4355d58
commit
8b341619ae
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user