From c3ebc84689ad0f623418549e2c919ed14eef8d8d Mon Sep 17 00:00:00 2001 From: Marcin Date: Sat, 16 Apr 2016 21:50:53 +0200 Subject: [PATCH] rebase for #2477, ready_for_review (#2581) --- lib/ansible/modules/cloud/amazon/route53.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/route53.py b/lib/ansible/modules/cloud/amazon/route53.py index 31e7144d94e..ef68b0286c6 100644 --- a/lib/ansible/modules/cloud/amazon/route53.py +++ b/lib/ansible/modules/cloud/amazon/route53.py @@ -507,7 +507,10 @@ def main(): #Need to save this changes in rset, because of comparing rset.to_xml() == wanted_rset.to_xml() in next block rset.name = decoded_name - if rset.type == type_in and decoded_name.lower() == record_in.lower() and str(rset.identifier) == str(identifier_in): + if identifier_in is not None: + identifier_in = str(identifier_in) + + if rset.type == type_in and decoded_name.lower() == record_in.lower() and rset.identifier == identifier_in: found_record = True record['zone'] = zone_in record['type'] = rset.type