From 3c7787c05cc1b0e3e28f498225f356e1d98f2791 Mon Sep 17 00:00:00 2001 From: Marcin Stolarek Date: Fri, 13 Nov 2015 10:45:27 +0100 Subject: [PATCH] It may be string with int comparison, if ansible user specifies identifier as int --- lib/ansible/modules/cloud/amazon/route53.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/route53.py b/lib/ansible/modules/cloud/amazon/route53.py index bdf2a2674b2..6429347a2a1 100644 --- a/lib/ansible/modules/cloud/amazon/route53.py +++ b/lib/ansible/modules/cloud/amazon/route53.py @@ -405,7 +405,7 @@ def main(): decoded_name = rset.name.replace(r'\052', '*') decoded_name = decoded_name.replace(r'\100', '@') - if rset.type == type_in and decoded_name.lower() == record_in.lower() and rset.identifier == identifier_in: + if rset.type == type_in and decoded_name.lower() == record_in.lower() and rset.identifier == str(identifier_in): found_record = True record['zone'] = zone_in record['type'] = rset.type