diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-09-03 08:46:35 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-09-03 08:47:27 -0700 |
commit | 2520627fe7d487a08e077a01bb1251f3757f0515 (patch) | |
tree | af42866f1decf2f2c1911e9fa0e610f14ad3ff4e | |
parent | 2f42cd4b2ce9e0f4968d70baab40dc70bd72cd2c (diff) | |
download | ansible-modules-core-2520627fe7d487a08e077a01bb1251f3757f0515.tar.gz |
Make sure listener ports are ints.
May fix #1984
-rw-r--r-- | cloud/amazon/ec2_elb_lb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud/amazon/ec2_elb_lb.py b/cloud/amazon/ec2_elb_lb.py index 3d54f994..8c739e1a 100644 --- a/cloud/amazon/ec2_elb_lb.py +++ b/cloud/amazon/ec2_elb_lb.py @@ -573,8 +573,8 @@ class ElbManager(object): # N.B. string manipulations on protocols below (str(), upper()) is to # ensure format matches output from ELB API listener_list = [ - listener['load_balancer_port'], - listener['instance_port'], + int(listener['load_balancer_port']), + int(listener['instance_port']), str(listener['protocol'].upper()), ] |