Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
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
edx
configuration
Commits
420b3413
Commit
420b3413
authored
May 31, 2014
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1133 from rodo/master
Be more explicit when failed to connect on sqs or ec2
parents
76ca39e5
8eb1ca54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
AUTHORS
+1
-0
util/vpc-tools/abbey.py
+7
-2
No files found.
AUTHORS
View file @
420b3413
...
...
@@ -30,3 +30,4 @@ Fred Smith <derf@edx.org>
Wang Peifeng <pku9104038@hotmail.com>
Ray Hooker <ray.hooker@gmail.com>
David Pollack <david@sologourmand.com>
Rodolphe Quiedeville <rodolphe@quiedeville.org>
util/vpc-tools/abbey.py
View file @
420b3413
...
...
@@ -687,10 +687,15 @@ if __name__ == '__main__':
stack_name
=
"{}-{}"
.
format
(
args
.
environment
,
args
.
deployment
)
try
:
sqs
=
boto
.
sqs
.
connect_to_region
(
args
.
region
)
ec2
=
boto
.
ec2
.
connect_to_region
(
args
.
region
)
except
NoAuthHandlerFound
:
print
'You must be able to connect to sqs and ec2 to use this script'
print
'Unable to connect to ec2 in region :{}'
.
format
(
args
.
region
)
sys
.
exit
(
1
)
try
:
sqs
=
boto
.
sqs
.
connect_to_region
(
args
.
region
)
except
NoAuthHandlerFound
:
print
'Unable to connect to sqs in region :{}'
.
format
(
args
.
region
)
sys
.
exit
(
1
)
if
args
.
blessed
:
...
...
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