diff options
author | napkindrawing <mike.walker@napkindrawing.com> | 2014-05-08 14:20:32 -0400 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2014-05-21 14:57:23 -0500 |
commit | 24d885e36845cea59bf70d1c3f2c4d2ca26eabe1 (patch) | |
tree | fc54f9546ea22730d7ebc0c35499ff946d133269 | |
parent | 8851ceaa9e9ad6e5052ba8186094fe4fc605f9a2 (diff) | |
download | ansible-24d885e36845cea59bf70d1c3f2c4d2ca26eabe1.tar.gz |
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.
-rw-r--r-- | library/cloud/route53 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cloud/route53 b/library/cloud/route53 index 49344ee206..5c78bc77a5 100644 --- a/library/cloud/route53 +++ b/library/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 |