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
OpenEdx
configuration
Commits
ddbda141
Commit
ddbda141
authored
May 29, 2014
by
Rodolphe Quiédeville
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more explicit when failed to connect on sqs or ec2
parent
76ca39e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
util/vpc-tools/abbey.py
+7
-2
No files found.
util/vpc-tools/abbey.py
View file @
ddbda141
...
@@ -687,10 +687,15 @@ if __name__ == '__main__':
...
@@ -687,10 +687,15 @@ if __name__ == '__main__':
stack_name
=
"{}-{}"
.
format
(
args
.
environment
,
args
.
deployment
)
stack_name
=
"{}-{}"
.
format
(
args
.
environment
,
args
.
deployment
)
try
:
try
:
sqs
=
boto
.
sqs
.
connect_to_region
(
args
.
region
)
ec2
=
boto
.
ec2
.
connect_to_region
(
args
.
region
)
ec2
=
boto
.
ec2
.
connect_to_region
(
args
.
region
)
except
NoAuthHandlerFound
:
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
)
sys
.
exit
(
1
)
if
args
.
blessed
:
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