From f1853eafc381004ce38f3ad97ee0e5847449db07 Mon Sep 17 00:00:00 2001 From: Mark Chappell Date: Fri, 22 Oct 2021 11:27:11 +0200 Subject: [PATCH] Switch to paginated description when describing all LBs --- plugins/modules/elb_classic_lb_info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/modules/elb_classic_lb_info.py b/plugins/modules/elb_classic_lb_info.py index 4fa4f6b548d..1afbd49c9dc 100644 --- a/plugins/modules/elb_classic_lb_info.py +++ b/plugins/modules/elb_classic_lb_info.py @@ -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):