Skip to content
Snippets Groups Projects
Commit eb244022 authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Merge branch '202-handle-app-deployment-state-transition' into 'develop'

add state handler for APPLICATION_REMOVED

See merge request !26
parents b560556e eee0221b
Branches
Tags
3 merge requests!65Resolve "Prevent users from adding an existing SSH key",!601.6.5 fix processing bulk,!26add state handler for APPLICATION_REMOVED
Pipeline #89104 passed
...@@ -412,10 +412,15 @@ public enum AppDeploymentState { ...@@ -412,10 +412,15 @@ public enum AppDeploymentState {
@Override @Override
public AppDeploymentState nextState(NmServiceDeploymentState state) { public AppDeploymentState nextState(NmServiceDeploymentState state) {
if (NmServiceDeploymentState.CONFIGURATION_REMOVAL_INITIATED.equals(state)) { switch (state) {
return APPLICATION_CONFIGURATION_REMOVAL_IN_PROGRESS; case DEPLOYMENT_FAILED:
return APPLICATION_DEPLOYMENT_FAILED;
case CONFIGURATION_REMOVAL_INITIATED:
return APPLICATION_CONFIGURATION_REMOVAL_IN_PROGRESS;
default:
return nextStateForNotMatchingNmServiceDeploymentState(this, state);
} }
return nextStateForNotMatchingNmServiceDeploymentState(this, state);
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment