Commit 706cc1a3 by James Cammarata

Merge pull request #9049 from omadahealth/issue_9048

[#9048] convert Route53 TTL to integer before comparison
parents 1d3a8bd3 44cab4bf
......@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment