From 1300680d30d9d2e1f1449d96b8fdfdc3c66dc1cb Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Thu, 17 Aug 2017 15:13:58 -0400 Subject: [PATCH] [cloud] Cast port to an integer in elb_application_lb listener spec (#28341) --- lib/ansible/modules/cloud/amazon/elb_application_lb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/cloud/amazon/elb_application_lb.py b/lib/ansible/modules/cloud/amazon/elb_application_lb.py index a2feb63bbe..4a85e2d559 100755 --- a/lib/ansible/modules/cloud/amazon/elb_application_lb.py +++ b/lib/ansible/modules/cloud/amazon/elb_application_lb.py @@ -628,6 +628,7 @@ def compare_listeners(connection, module, current_listeners, new_listeners, purg for current_listener in current_listeners: current_listener_passed_to_module = False for new_listener in new_listeners[:]: + new_listener['Port'] = int(new_listener['Port']) if current_listener['Port'] == new_listener['Port']: current_listener_passed_to_module = True # Remove what we match so that what is left can be marked as 'to be added'