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
768de238
Commit
768de238
authored
May 08, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'vpc_fix' of
https://github.com/ebrevdo/ansible
into ebrevdo-vpc_fix
parents
7dda178a
8e32f542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
library/cloud/rds
+8
-1
No files found.
library/cloud/rds
View file @
768de238
...
...
@@ -465,7 +465,9 @@ def main():
params
[
"security_groups"
]
=
security_groups
.
split
(
','
)
if
vpc_security_groups
:
params
[
"vpc_security_groups"
]
=
vpc_security_groups
.
split
(
','
)
params
[
"vpc_security_groups"
]
=
[
boto
.
rds
.
VPCSecurityGroupMembership
(
vpc_group
=
x
)
if
x
else
None
for
x
in
vpc_security_groups
.
split
(
','
)]
if
new_instance_name
:
params
[
"new_instance_id"
]
=
new_instance_name
...
...
@@ -618,9 +620,14 @@ def main():
if
resource
.
status
==
'available'
and
command
!=
'snapshot'
:
d
[
"endpoint"
]
=
resource
.
endpoint
[
0
]
d
[
"port"
]
=
resource
.
endpoint
[
1
]
if
resource
.
vpc_security_groups
is
not
None
:
d
[
"vpc_security_groups"
]
=
','
.
join
(
x
.
vpc_group
for
x
in
resource
.
vpc_security_groups
)
else
:
d
[
"vpc_security_groups"
]
=
None
else
:
d
[
"endpoint"
]
=
None
d
[
"port"
]
=
None
d
[
"vpc_security_groups"
]
=
None
# ReadReplicaSourceDBInstanceIdentifier may or may not exist
try
:
...
...
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