mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
use marker instead of is_truncated which does not seem to work
This commit is contained in:
parent
4e787f17cf
commit
7517e6366e
1 changed files with 2 additions and 2 deletions
|
@ -268,10 +268,10 @@ class ElbManager:
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
newelbs = elb.get_all_load_balancers(marker=marker)
|
newelbs = elb.get_all_load_balancers(marker=marker)
|
||||||
if not newelbs.is_truncated:
|
marker = newelbs.next_marker
|
||||||
|
if not marker:
|
||||||
break
|
break
|
||||||
elbs.extend(newelbs)
|
elbs.extend(newelbs)
|
||||||
marker = newelbs.next_marker
|
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# Older version of boto do not allow for params
|
# Older version of boto do not allow for params
|
||||||
elbs = elb.get_all_load_balancers()
|
elbs = elb.get_all_load_balancers()
|
||||||
|
|
Loading…
Reference in a new issue