mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Paginate ASG results (#19944)
This commit is contained in:
parent
7793424b1b
commit
1154aca746
1 changed files with 2 additions and 1 deletions
|
@ -298,7 +298,8 @@ def find_asgs(conn, module, name=None, tags=None):
|
|||
"""
|
||||
|
||||
try:
|
||||
asgs = conn.describe_auto_scaling_groups()
|
||||
asgs_paginator = conn.get_paginator('describe_auto_scaling_groups')
|
||||
asgs = asgs_paginator.paginate().build_full_result()
|
||||
except ClientError as e:
|
||||
module.fail_json(msg=e.message, **camel_dict_to_snake_dict(e.response))
|
||||
|
||||
|
|
Loading…
Reference in a new issue