mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-14 04:41:27 +00:00
Paginate ASG results (#19944)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user