mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-19 15:21:27 +00:00
use marker instead of is_truncated which does not seem to work
This commit is contained in:
@@ -268,10 +268,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()
|
||||
|
||||
Reference in New Issue
Block a user