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

This commit is contained in:
James Kassemi 2016-10-22 10:46:39 -06:00 committed by Matt Clay
parent d8efe53d7c
commit f4faf9842f

View file

@ -162,11 +162,12 @@ def find_launch_configs(client, module):
}
)
results = []
for response in response_iterator:
response['LaunchConfigurations'] = filter(lambda lc: re.compile(name_regex).match(lc['LaunchConfigurationName']),
response['LaunchConfigurations'])
results = []
for lc in response['LaunchConfigurations']:
data = {
'name': lc['LaunchConfigurationName'],