diff --git a/cloud/amazon/ec2_elb.py b/cloud/amazon/ec2_elb.py index 7e383d1539d..5b3b24dacc2 100644 --- a/cloud/amazon/ec2_elb.py +++ b/cloud/amazon/ec2_elb.py @@ -265,10 +265,10 @@ class ElbManager: while True: try: newelbs = elb.get_all_load_balancers(marker=marker) - if not newelbs.is_truncated: + marker = newelbs.next_marker + if not marker: break elbs.extend(newelbs) - marker = newelbs.next_marker except TypeError: # Older version of boto do not allow for params elbs = elb.get_all_load_balancers()