Skip to content

Commit

Permalink
Switch to paginated description when describing all LBs
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed Oct 22, 2021
1 parent c05c26d commit f1853ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/elb_classic_lb_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ def describe_elb(connection, lb):
return description


@AWSRetry.jittered_backoff()
def get_all_lb(connection):
return connection.describe_load_balancers(aws_retry=True)['LoadBalancerDescriptions']
paginator = connection.get_paginator('describe_load_balancers')
return paginator.paginate().build_full_result()['LoadBalancerDescriptions']


def get_lb(connection, load_balancer_name):
Expand Down

0 comments on commit f1853ea

Please sign in to comment.