From 2520627fe7d487a08e077a01bb1251f3757f0515 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Thu, 3 Sep 2015 08:46:35 -0700 Subject: [PATCH] Make sure listener ports are ints. May fix #1984 --- cloud/amazon/ec2_elb_lb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/amazon/ec2_elb_lb.py b/cloud/amazon/ec2_elb_lb.py index 3d54f994436..8c739e1a2b2 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()), ]