Support accounts with more than 100 load balancers
This commit is contained in:
parent
4ba2d55589
commit
d03e9540a6
1 changed files with 8 additions and 1 deletions
|
@ -152,7 +152,14 @@ def cloud_load_balancer(module, state, name, meta, algorithm, port, protocol,
|
||||||
'typically indicates an invalid region or an '
|
'typically indicates an invalid region or an '
|
||||||
'incorrectly capitalized region name.')
|
'incorrectly capitalized region name.')
|
||||||
|
|
||||||
for balancer in clb.list():
|
balancer_list = clb.list()
|
||||||
|
while balancer_list:
|
||||||
|
retrieved = clb.list(marker=balancer_list.pop().id)
|
||||||
|
balancer_list.extend(retrieved)
|
||||||
|
if len(retrieved) < 2:
|
||||||
|
break
|
||||||
|
|
||||||
|
for balancer in balancer_list:
|
||||||
if name != balancer.name and name != balancer.id:
|
if name != balancer.name and name != balancer.id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue