diff options
author | Sloane Hertel <shertel@redhat.com> | 2017-09-26 16:09:53 -0400 |
---|---|---|
committer | Ryan Brown <sb@ryansb.com> | 2017-09-26 16:09:53 -0400 |
commit | ed2a152b5e3322a20029e11780ec6bee52e478e3 (patch) | |
tree | a25bb1ba23e69a19150a3774860f15bcaf0c4559 /lib | |
parent | 91341de22078d64a66a33fec89a5a2e665d5228b (diff) | |
download | ansible-ed2a152b5e3322a20029e11780ec6bee52e478e3.tar.gz |
[cloud] Ensure target group ARNs are passed as a list in `ec2_asg` (#30905) (#30934)
While sets are useful for comparing whether target groups
need modifying, the AWS API expects a list or tuple, not a set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ansible/modules/cloud/amazon/ec2_asg.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/cloud/amazon/ec2_asg.py b/lib/ansible/modules/cloud/amazon/ec2_asg.py index 7f77442fa8..7ea432ed2b 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_asg.py +++ b/lib/ansible/modules/cloud/amazon/ec2_asg.py @@ -942,13 +942,13 @@ def create_autoscaling_group(connection, module): tgs_to_detach = has_tgs.difference(wanted_tgs) if tgs_to_detach: changed = True - detach_lb_target_groups(connection, group_name, tgs_to_detach) + detach_lb_target_groups(connection, group_name, list(tgs_to_detach)) if wanted_tgs.issuperset(has_tgs): # if has contains less than wanted, then we need to add some tgs_to_attach = wanted_tgs.difference(has_tgs) if tgs_to_attach: changed = True - attach_lb_target_groups(connection, group_name, tgs_to_attach) + attach_lb_target_groups(connection, group_name, list(tgs_to_attach)) # check for attributes that aren't required for updating an existing ASG desired_capacity = desired_capacity if desired_capacity is not None else as_group['DesiredCapacity'] |