Fix issue with multiple pages of results in ec2_lc_find (#3090)

pull/4420/head
James Kassemi 2016-10-22 10:46:39 -06:00 committed by Matt Clay
parent d8efe53d7c
commit f4faf9842f
1 changed files with 21 additions and 20 deletions

View File

@ -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'],