Closed wp-davisona closed 2 years ago
Files identified in the description:
plugins/modules/route53.py
](https://github.com/['ansible-collections/amazon.aws', 'ansible-collections/community.aws', 'ansible-collections/community.vmware']/blob/main/plugins/modules/route53.py)If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @jillr @jimbydamonk @markuman @s-hertel @tremble click here for bot help
Summary
When trying to create a Route53 DNS record with a weight of 0, I receive the error:
This appears to have been caused by this commit:
https://github.com/ansible-collections/community.aws/commit/59f06ed666a5f97adb5f75e086fad0660c49f35f#diff-39a0039c8f787ef918e13c9e34de717b42890a4baada9448cd80a76242bffee4L570-R632
this is changing the weight comparison from
weight_in is None
tonot any([weight_in...
. A weight of zero returns false to the first comparison, but true to the latter.Issue Type
Bug Report
Component Name
route53
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
CentOS 7 and Mac OS 12.5
Steps to Reproduce
Expected Results
I expect the DNS record to be created with a weight of zero.
Actual Results
Code of Conduct