From 6bad06e8272a1e2cf624b651cf0523a7e714bece Mon Sep 17 00:00:00 2001 From: Stepan Stipl Date: Thu, 7 Jan 2016 18:06:35 +0000 Subject: [PATCH] Fix: route53_facts hosted_zone_id boto error Boto is expecting parameter called "Id", not "HostedZoneId". See http://boto3.readthedocs.org/en/latest/reference/services/route53.html#Route53.Client.get_hosted_zone Fixes ansible/ansible-modules-extras/#1465 --- cloud/amazon/route53_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/amazon/route53_facts.py b/cloud/amazon/route53_facts.py index d6081dba4da..70d7fd3037a 100644 --- a/cloud/amazon/route53_facts.py +++ b/cloud/amazon/route53_facts.py @@ -178,7 +178,7 @@ def get_hosted_zone(client, module): params = dict() if module.params.get('hosted_zone_id'): - params['HostedZoneId'] = module.params.get('hosted_zone_id') + params['Id'] = module.params.get('hosted_zone_id') else: module.fail_json(msg="Hosted Zone Id is required")