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:
Sloane Hertel 2018-09-06 15:44:26 -04:00 committed by Ryan Brown
commit 8b341619ae
2 changed files with 7 additions and 6 deletions

View file

@ -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