Skip to content

Commit

Permalink
Add retries to elb / target group info modules (ansible-collections#1113
Browse files Browse the repository at this point in the history
)

SUMMARY

Currently there is backoff retries applied with 10 attempts overall, but due to the pagination its defaulting back to 4

ISSUE TYPE

    Bugfix Pull Request

COMPONENT NAME

elb_application_lb_info
elb_target_group_info

ADDITIONAL INFORMATION
  • Loading branch information
marknet15 authored and abikouo committed Sep 18, 2023
1 parent 1aa9266 commit 72a864e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elb_application_lb_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import AWSRetry, boto3_tag_list_to_ansible_dict


@AWSRetry.jittered_backoff()
@AWSRetry.jittered_backoff(retries=10)
def get_paginator(connection, **kwargs):
paginator = connection.get_paginator('describe_load_balancers')
return paginator.paginate(**kwargs).build_full_result()
Expand Down
2 changes: 1 addition & 1 deletion elb_target_group_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
from ansible_collections.amazon.aws.plugins.module_utils.ec2 import AWSRetry, boto3_tag_list_to_ansible_dict


@AWSRetry.jittered_backoff()
@AWSRetry.jittered_backoff(retries=10)
def get_paginator(**kwargs):
paginator = client.get_paginator('describe_target_groups')
return paginator.paginate(**kwargs).build_full_result()
Expand Down

0 comments on commit 72a864e

Please sign in to comment.