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
b0e863b3
Commit
b0e863b3
authored
Aug 22, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8659 from willthames/rds_module_connection_fix
rds_module: Fix AWS connection
parents
3695c2bc
00832127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
library/cloud/rds
+2
-2
No files found.
library/cloud/rds
View file @
b0e863b3
...
@@ -353,13 +353,13 @@ def main():
...
@@ -353,13 +353,13 @@ def main():
apply_immediately
=
module
.
params
.
get
(
'apply_immediately'
)
apply_immediately
=
module
.
params
.
get
(
'apply_immediately'
)
new_instance_name
=
module
.
params
.
get
(
'new_instance_name'
)
new_instance_name
=
module
.
params
.
get
(
'new_instance_name'
)
ec2_url
,
aws_access_key
,
aws_secret_key
,
region
=
get_ec2_creds
(
module
)
region
,
ec2_url
,
aws_connect_params
=
get_aws_connection_info
(
module
)
if
not
region
:
if
not
region
:
module
.
fail_json
(
msg
=
str
(
"region not specified and unable to determine region from EC2_REGION."
))
module
.
fail_json
(
msg
=
str
(
"region not specified and unable to determine region from EC2_REGION."
))
# connect to the rds endpoint
# connect to the rds endpoint
try
:
try
:
conn
=
boto
.
rds
.
connect_to_region
(
region
,
aws_access_key_id
=
aws_access_key
,
aws_secret_access_key
=
aws_secret_key
)
conn
=
connect_to_aws
(
boto
.
rds
,
region
,
**
aws_connect_params
)
except
boto
.
exception
.
BotoServerError
,
e
:
except
boto
.
exception
.
BotoServerError
,
e
:
module
.
fail_json
(
msg
=
e
.
error_message
)
module
.
fail_json
(
msg
=
e
.
error_message
)
...
...
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