1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix #38038 cloudfront_facts module returns only first page of response (#38045)

This commit is contained in:
Gennady Aleksandrov 2018-07-12 22:07:57 +03:00 committed by ansibot
parent 45f5964fed
commit 12057de1c6

View file

@ -509,8 +509,12 @@ class CloudFrontServiceManager:
else:
result = response.get(result_key)
results.update(result)
args['NextToken'] = response.get('NextToken')
loop = args['NextToken'] is not None
args['Marker'] = response.get('NextMarker')
for key in response.keys():
if key.endswith('List'):
args['Marker'] = response[key].get('NextMarker')
break
loop = args['Marker'] is not None
return results
def keyed_list_helper(self, list_to_key):