From d392e067bf26f88be96a3e33fcc98cae8501d4ae Mon Sep 17 00:00:00 2001 From: Matt Paine Date: Wed, 15 Jan 2014 09:51:59 +1000 Subject: [PATCH] Enable changes to ttl of a record to be propogated to route53 --- library/cloud/route53 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/cloud/route53 b/library/cloud/route53 index f9ecfc35dd..56bf70ea6f 100644 --- a/library/cloud/route53 +++ b/library/cloud/route53 @@ -217,7 +217,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 command_in == 'create': + if value_list == sorted(rset.resource_records) and record['ttl'] == ttl_in and command_in == 'create': module.exit_json(changed=False) if command_in == 'get': @@ -232,7 +232,7 @@ def main(): if not module.params['overwrite']: module.fail_json(msg = "Record already exists with different value. Set 'overwrite' to replace it") else: - change = changes.add_change("DELETE", record_in, type_in, ttl_in) + change = changes.add_change("DELETE", record_in, type_in, record['ttl']) for v in record['values']: change.add_value(v)