1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Cast target port to an int in elb_target_group. Fixes #32098 (#32202)

This commit is contained in:
Marc Mercer 2017-10-26 09:09:49 -07:00 committed by Sloane Hertel
parent 104934c095
commit 17a008654a

View file

@ -459,7 +459,7 @@ def create_or_update_target_group(connection, module):
instances_to_add = []
for target in params['Targets']:
if target['Id'] in add_instances:
instances_to_add.append(target)
instances_to_add.append({'Id': target['Id'], 'Port': int(target['Port'])})
changed = True
try: