Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서승완
/
kappa
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Jose Diaz-Gonzalez
2016-06-12 03:34:44 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0273fb67bb87471e5cba5d6d7f6dded9546ee965
0273fb67
1 parent
88a100bd
Require that environment exist before indexing it
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
kappa/context.py
kappa/context.py
View file @
0273fb6
...
...
@@ -18,6 +18,7 @@ import yaml
import
time
import
os
import
shutil
import
sys
import
kappa.function
import
kappa.restapi
...
...
@@ -48,6 +49,12 @@ class Context(object):
self
.
_load_cache
()
self
.
config
=
yaml
.
load
(
config_file
)
self
.
environment
=
environment
if
self
.
environment
not
in
self
.
config
.
get
(
'environments'
,
{}):
LOG
.
error
(
'Invalid environment {0} specified'
.
format
(
self
.
environment
))
sys
.
exit
(
1
)
profile
=
self
.
config
[
'environments'
][
self
.
environment
][
'profile'
]
region
=
self
.
config
[
'environments'
][
self
.
environment
][
'region'
]
self
.
session
=
kappa
.
awsclient
.
create_session
(
profile
,
region
)
...
...
Please
register
or
login
to post a comment