Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
db67c3d7
Commit
db67c3d7
authored
Mar 06, 2014
by
Scott Anderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes a bug that prevents round-tripping of * and @
parent
6690c234
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
library/cloud/route53
+7
-2
No files found.
library/cloud/route53
View file @
db67c3d7
...
...
@@ -220,11 +220,16 @@ def main():
found_record
=
False
sets
=
conn
.
get_all_rrsets
(
zones
[
zone_in
])
for
rset
in
sets
:
if
rset
.
type
==
type_in
and
rset
.
name
==
record_in
:
# 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'
,
'@'
)
if
rset
.
type
==
type_in
and
decoded_name
==
record_in
:
found_record
=
True
record
[
'zone'
]
=
zone_in
record
[
'type'
]
=
rset
.
type
record
[
'record'
]
=
rset
.
name
record
[
'record'
]
=
decoded_
name
record
[
'ttl'
]
=
rset
.
ttl
record
[
'value'
]
=
','
.
join
(
sorted
(
rset
.
resource_records
))
record
[
'values'
]
=
sorted
(
rset
.
resource_records
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment