From 6a202054f862eb047fa32a1b748001d4f594c75c 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. --- lib/ansible/modules/extras/cloud/amazon/route53_facts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/cloud/amazon/route53_facts.py b/lib/ansible/modules/extras/cloud/amazon/route53_facts.py index ab6d6ca3019..af79b80e010 100644 --- a/lib/ansible/modules/extras/cloud/amazon/route53_facts.py +++ b/lib/ansible/modules/extras/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')