Commit 7e2eeb2c authored by Joerg Domaschka's avatar Joerg Domaschka

add error states to all container actions.

parent 11c6e0f5
......@@ -43,10 +43,11 @@ final class BootstrapTransitionAction implements TransitionAction {
CreateTransitionAction action = new CreateTransitionAction(container);
// FIXME: add error handling //
// FIXME: add error handler //
transitionBuilder.setStartState(ContainerStatus.CREATED).
setIntermediateState(ContainerStatus.BOOTSTRAPPING, false).
setEndState(ContainerStatus.BOOTSTRAPPED).
setErrorState(ContainerStatus.BOOTSTRAPPING_FAILED).
addTransitionAction(action);
transitionBuilder.buildAndRegister();
......
......@@ -43,7 +43,7 @@ final class CreateTransitionAction implements TransitionAction {
CreateTransitionAction action = new CreateTransitionAction(container);
// FIXME: add error handling //
// FIXME: add error handler //
transitionBuilder.setStartState(ContainerStatus.NEW).
setIntermediateState(ContainerStatus.CREATING, false).
setEndState(ContainerStatus.CREATED).
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment