fixed break order

This commit is contained in:
Brian Coca 2015-11-19 09:28:40 -08:00 committed by Matt Clay
parent 0bf5fa1c23
commit 0425d6be39

View file

@ -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()