From 2ef35c33d0b196f8609b35b56fb1ef2d2d923d3c Mon Sep 17 00:00:00 2001 From: Gabriel Burkholder Date: Wed, 24 Feb 2016 16:14:42 -0800 Subject: [PATCH] Fixes route53_facts to use max_items parameter with record_sets query. --- cloud/amazon/route53_facts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud/amazon/route53_facts.py b/cloud/amazon/route53_facts.py index 9de2e4a68cc..95c1491a66f 100644 --- a/cloud/amazon/route53_facts.py +++ b/cloud/amazon/route53_facts.py @@ -316,6 +316,9 @@ def record_sets_details(client, module): else: module.fail_json(msg="Hosted Zone Id is required") + if module.params.get('max_items'): + params['MaxItems'] = module.params.get('max_items') + if module.params.get('start_record_name'): params['StartRecordName'] = module.params.get('start_record_name')