From 3f8e45f864c99b32882130cc1553b53435a5285c 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. --- cloud/route53 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/route53 b/cloud/route53 index 0f511c23a79..b3878e0580e 100644 --- a/cloud/route53 +++ b/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':