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
a877b8b0
Commit
a877b8b0
authored
Feb 04, 2014
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5624 from mattsoftware/route53_ttl
Enable changes to ttl of a record to be propogated to route53
parents
5967b463
d392e067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/cloud/route53
+2
-2
No files found.
library/cloud/route53
View file @
a877b8b0
...
...
@@ -217,7 +217,7 @@ def main():
record
[
'ttl'
]
=
rset
.
ttl
record
[
'value'
]
=
','
.
join
(
sorted
(
rset
.
resource_records
))
record
[
'values'
]
=
sorted
(
rset
.
resource_records
)
if
value_list
==
sorted
(
rset
.
resource_records
)
and
command_in
==
'create'
:
if
value_list
==
sorted
(
rset
.
resource_records
)
and
record
[
'ttl'
]
==
ttl_in
and
command_in
==
'create'
:
module
.
exit_json
(
changed
=
False
)
if
command_in
==
'get'
:
...
...
@@ -232,7 +232,7 @@ def main():
if
not
module
.
params
[
'overwrite'
]:
module
.
fail_json
(
msg
=
"Record already exists with different value. Set 'overwrite' to replace it"
)
else
:
change
=
changes
.
add_change
(
"DELETE"
,
record_in
,
type_in
,
ttl_in
)
change
=
changes
.
add_change
(
"DELETE"
,
record_in
,
type_in
,
record
[
'ttl'
]
)
for
v
in
record
[
'values'
]:
change
.
add_value
(
v
)
...
...
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