From 0425d6be396b7b2c218e08df6ec996e52bd9bf96 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 19 Nov 2015 09:28:40 -0800 Subject: [PATCH] fixed break order --- lib/ansible/modules/cloud/amazon/ec2_elb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_elb.py b/lib/ansible/modules/cloud/amazon/ec2_elb.py index f5e61f7a871..1a55ef5e5a2 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_elb.py +++ b/lib/ansible/modules/cloud/amazon/ec2_elb.py @@ -269,9 +269,9 @@ class ElbManager: try: newelbs = elb.get_all_load_balancers(marker=marker) marker = newelbs.next_marker + elbs.extend(newelbs) if not marker: break - elbs.extend(newelbs) except TypeError: # Older version of boto do not allow for params elbs = elb.get_all_load_balancers()