1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[#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.
This commit is contained in:
Sam Pierson 2014-09-17 14:47:21 -07:00
parent 6b1ae82acc
commit 44cab4bf75

View file

@ -241,7 +241,7 @@ def main():
record['ttl'] = rset.ttl record['ttl'] = rset.ttl
record['value'] = ','.join(sorted(rset.resource_records)) record['value'] = ','.join(sorted(rset.resource_records))
record['values'] = 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) module.exit_json(changed=False)
if command_in == 'get': if command_in == 'get':