From 5c7f72233f52be7638c4a68d56174b487d83cf14 Mon Sep 17 00:00:00 2001 From: Daniel Donckers Date: Fri, 20 Nov 2015 14:55:39 -0600 Subject: [PATCH] Fixes #822 --- lib/ansible/modules/cloud/amazon/route53.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/route53.py b/lib/ansible/modules/cloud/amazon/route53.py index 2695a069b0..b0d4250a23 100644 --- a/lib/ansible/modules/cloud/amazon/route53.py +++ b/lib/ansible/modules/cloud/amazon/route53.py @@ -297,7 +297,7 @@ def main(): overwrite = dict(required=False, type='bool'), retry_interval = dict(required=False, default=500) private_zone = dict(required=False, type='bool', default=False), - identifier = dict(required=False), + identifier = dict(required=False, default=None), weight = dict(required=False, type='int'), region = dict(required=False), health_check = dict(required=False), @@ -407,7 +407,7 @@ 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 rset.identifier == str(identifier_in): + if rset.type == type_in and decoded_name.lower() == record_in.lower() and str(rset.identifier) == str(identifier_in): found_record = True record['zone'] = zone_in record['type'] = rset.type