From 44cab4bf7550d1fe1f82b7283c44878297078dfd Mon Sep 17 00:00:00 2001 From: Sam Pierson Date: Wed, 17 Sep 2014 14:47:21 -0700 Subject: [PATCH] [#9048] convert Route53 TTL to integer before comparison boto/Route53 are returning TTL as a string. The route53 module is comparing it with an integer and therfore thinks the DNS entry has always changed. --- library/cloud/route53 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/route53 b/library/cloud/route53 index 0f511c23a79..b3878e0580e 100644 --- a/library/cloud/route53 +++ b/library/cloud/route53 @@ -241,7 +241,7 @@ def main(): record['ttl'] = rset.ttl record['value'] = ','.join(sorted(rset.resource_records)) record['values'] = sorted(rset.resource_records) - if value_list == sorted(rset.resource_records) and record['ttl'] == ttl_in and command_in == 'create': + if value_list == sorted(rset.resource_records) and int(record['ttl']) == ttl_in and command_in == 'create': module.exit_json(changed=False) if command_in == 'get':