From b6223ca729b0f4fb238eb30a31447c6a55fbca95 Mon Sep 17 00:00:00 2001 From: Marcin Stolarek Date: Fri, 13 Nov 2015 11:32:10 +0100 Subject: [PATCH] Save changes of special characters to rset, without that comparison rset.to_xml() == wanted_rset.to_xml() will fail if record contains * or @ characters. --- cloud/amazon/route53.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/amazon/route53.py b/cloud/amazon/route53.py index 443b71be921..ec4dc533005 100644 --- a/cloud/amazon/route53.py +++ b/cloud/amazon/route53.py @@ -388,6 +388,8 @@ def main(): # tripping of things like * and @. decoded_name = rset.name.replace(r'\052', '*') decoded_name = decoded_name.replace(r'\100', '@') + #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): found_record = True