Fix issue with multiple pages of results in ec2_lc_find (#3090)
parent
d8efe53d7c
commit
f4faf9842f
|
@ -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…
Reference in New Issue