From 6bda82c907d5d09fed0f713ed405dc9d7c7e08bf Mon Sep 17 00:00:00 2001 From: napkindrawing Date: Thu, 8 May 2014 14:20:32 -0400 Subject: [PATCH] Fix to unescape * was discarded by unescape of @ `decoded_name` was created twice, each from `rset.name` So, the second call to `.replace(r'\100', '@')` overwrites decoded_name, discarding the result of the call to `.replace(r'\052', '*')` I had a problem with wildcard domains that was fixed by this patch. --- cloud/route53 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud/route53 b/cloud/route53 index 49344ee2061..5c78bc77a5b 100644 --- a/cloud/route53 +++ b/cloud/route53 @@ -223,7 +223,7 @@ def main(): # Due to a bug in either AWS or Boto, "special" characters are returned as octals, preventing round # tripping of things like * and @. decoded_name = rset.name.replace(r'\052', '*') - decoded_name = rset.name.replace(r'\100', '@') + decoded_name = decoded_name.replace(r'\100', '@') if rset.type == type_in and decoded_name == record_in: found_record = True