(cherry picked from commit 17a008654abf7bc241043d0b95db8bb87df958ff)
Marc Mercer authored on 2017/10/27 01:09:49... | ... |
@@ -458,7 +458,7 @@ def create_or_update_target_group(connection, module): |
458 | 458 |
instances_to_add = [] |
459 | 459 |
for target in params['Targets']: |
460 | 460 |
if target['Id'] in add_instances: |
461 |
- instances_to_add.append(target) |
|
461 |
+ instances_to_add.append({'Id': target['Id'], 'Port': int(target['Port'])}) |
|
462 | 462 |
|
463 | 463 |
changed = True |
464 | 464 |
try: |