From 47cfb2c7342e9151813a0815792338e10033d63d Mon Sep 17 00:00:00 2001 From: Siert Zijl Date: Fri, 11 Sep 2015 20:14:59 +0200 Subject: [PATCH] #931 append dot to zone if not defined --- lib/ansible/modules/extras/cloud/amazon/route53_zone.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ansible/modules/extras/cloud/amazon/route53_zone.py b/lib/ansible/modules/extras/cloud/amazon/route53_zone.py index b40a033b02..d5ba0dcd61 100644 --- a/lib/ansible/modules/extras/cloud/amazon/route53_zone.py +++ b/lib/ansible/modules/extras/cloud/amazon/route53_zone.py @@ -82,6 +82,9 @@ def main(): vpc_region = module.params.get('vpc_region') comment = module.params.get('comment') + if zone_in[-1:] != '.': + zone_in += "." + private_zone = vpc_id is not None and vpc_region is not None _, _, aws_connect_kwargs = get_aws_connection_info(module)