fixed break order

This commit is contained in:
Brian Coca 2015-11-19 09:28:40 -08:00
parent 2c92fc4d3c
commit 1d6b31a90f

View file

@ -266,9 +266,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()