From 135e7c60de1d274153dd584649047dbb3aea2789 Mon Sep 17 00:00:00 2001 From: Tom Fotherby Date: Thu, 10 Sep 2015 17:34:38 +0100 Subject: [PATCH] Fix #1984 - allow load_balancer_port as a variable --- lib/ansible/modules/cloud/amazon/ec2_elb_lb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py b/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py index 1ad0a8f5974..449a648b924 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py +++ b/lib/ansible/modules/cloud/amazon/ec2_elb_lb.py @@ -521,8 +521,8 @@ class ElbManager(object): existing_listener_found = None for existing_listener in self.elb.listeners: # Since ELB allows only one listener on each incoming port, a - # single match on the incomping port is all we're looking for - if existing_listener[0] == listener['load_balancer_port']: + # single match on the incoming port is all we're looking for + if existing_listener[0] == int(listener['load_balancer_port']): existing_listener_found = self._api_listener_as_tuple(existing_listener) break