mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix issue with multiple pages of results in ec2_lc_find (#3090)
This commit is contained in:
parent
d8efe53d7c
commit
f4faf9842f
1 changed files with 21 additions and 20 deletions
|
@ -162,11 +162,12 @@ def find_launch_configs(client, module):
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
results = []
|
||||||
|
|
||||||
for response in response_iterator:
|
for response in response_iterator:
|
||||||
response['LaunchConfigurations'] = filter(lambda lc: re.compile(name_regex).match(lc['LaunchConfigurationName']),
|
response['LaunchConfigurations'] = filter(lambda lc: re.compile(name_regex).match(lc['LaunchConfigurationName']),
|
||||||
response['LaunchConfigurations'])
|
response['LaunchConfigurations'])
|
||||||
|
|
||||||
results = []
|
|
||||||
for lc in response['LaunchConfigurations']:
|
for lc in response['LaunchConfigurations']:
|
||||||
data = {
|
data = {
|
||||||
'name': lc['LaunchConfigurationName'],
|
'name': lc['LaunchConfigurationName'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue