From 5d1a3ee0ac2e1178c7debf337fdfae697f81b9a4 Mon Sep 17 00:00:00 2001 From: xiaclo Date: Thu, 30 Apr 2015 13:01:00 +1000 Subject: [PATCH 1/2] Fix issue #1156 Fix as suggested in the issue. https://github.com/ansible/ansible-modules-core/issues/1156 --- cloud/amazon/route53.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/amazon/route53.py b/cloud/amazon/route53.py index f89fca448b7..d160e517fd5 100644 --- a/cloud/amazon/route53.py +++ b/cloud/amazon/route53.py @@ -209,7 +209,7 @@ def main(): command_in = module.params.get('command') zone_in = module.params.get('zone').lower() - ttl_in = module.params.get('ttl') + ttl_in = int(module.params.get('ttl')) record_in = module.params.get('record').lower() type_in = module.params.get('type') value_in = module.params.get('value') From 946af50b22cb0ff886fdffb578ff627441549fb2 Mon Sep 17 00:00:00 2001 From: xiaclo Date: Fri, 1 May 2015 12:28:47 +1000 Subject: [PATCH 2/2] Update route53.py --- cloud/amazon/route53.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud/amazon/route53.py b/cloud/amazon/route53.py index d160e517fd5..d6c758b3974 100644 --- a/cloud/amazon/route53.py +++ b/cloud/amazon/route53.py @@ -192,7 +192,7 @@ def main(): command = dict(choices=['get', 'create', 'delete'], required=True), zone = dict(required=True), record = dict(required=True), - ttl = dict(required=False, default=3600), + ttl = dict(required=False, type='int', default=3600), type = dict(choices=['A', 'CNAME', 'MX', 'AAAA', 'TXT', 'PTR', 'SRV', 'SPF', 'NS'], required=True), alias = dict(required=False, type='bool'), alias_hosted_zone_id = dict(required=False), @@ -209,7 +209,7 @@ def main(): command_in = module.params.get('command') zone_in = module.params.get('zone').lower() - ttl_in = int(module.params.get('ttl')) + ttl_in = module.params.get('ttl') record_in = module.params.get('record').lower() type_in = module.params.get('type') value_in = module.params.get('value')