ec2_elb_lb: Numeric parameter stickiness['expiration'] passed to module as string and fails test #27309
Labels
affects_2.3
This issue/PR affects Ansible v2.3
aws
bug
This issue/PR relates to a bug.
cloud
deprecated
This issue/PR relates to a deprecated module.
module
This issue/PR relates to a module.
ISSUE TYPE
COMPONENT NAME
ec2_elb_lb.py
ANSIBLE VERSION
CONFIGURATION
standard
OS / ENVIRONMENT
MacOS/Linux
SUMMARY
setting stickiness.expiration to 0 in the module should be converted to None.
it doesn't because the test
stickiness['expiration'] is not 0
fails since stickiness['expiration'] is "0" for some odd reason. this makes the value sent to aws a 0 instead of a None which is not legal on amazon side as value for expiration.STEPS TO REPRODUCE
simply try to create an ELB using the ec2_elb_lb module
https://gist.github.com/hackndoes/925e461767d4b26a0e6d817d558070ed
https://gist.github.com/hackndoes/619b9000dd75c558b352f2709520d3ff
EXPECTED RESULTS
creation of LB will succeed
ACTUAL RESULTS
inside first gist
The text was updated successfully, but these errors were encountered: