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
Colin Panisset
2014-12-10 11:17:58 +1100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
320e6349b0f464ecce37c7eb42f213e21d1f93b4
320e6349
1 parent
7003e0a7
Handle stack create/update rollbacks as failures
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
kappa/__init__.py
kappa/__init__.py
View file @
320e634
...
...
@@ -25,6 +25,7 @@ LOG = logging.getLogger(__name__)
class
Kappa
(
object
):
completed_states
=
(
'CREATE_COMPLETE'
,
'UPDATE_COMPLETE'
)
failed_states
=
(
'ROLLBACK_COMPLETE'
)
def
__init__
(
self
,
config
):
self
.
config
=
config
...
...
@@ -67,6 +68,8 @@ class Kappa(object):
LOG
.
debug
(
'Stack status is:
%
s'
,
status
)
if
status
in
self
.
completed_states
:
done
=
True
if
status
in
self
.
failed_states
:
raise
ValueError
(
'Could not create stack
%
s:
%
s'
%
(
stack_name
,
status
))
def
get_role_arn
(
self
,
role_name
):
role_arn
=
None
...
...
Please
register
or
login
to post a comment