Skip to content
Snippets Groups Projects
Commit eee0221b authored by kbeyro's avatar kbeyro
Browse files

add state handler for APPLICATION_REMOVED

parent af6bf4b6
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 #88886 passed
......@@ -412,10 +412,15 @@ public enum AppDeploymentState {
@Override
public AppDeploymentState nextState(NmServiceDeploymentState state) {
if (NmServiceDeploymentState.CONFIGURATION_REMOVAL_INITIATED.equals(state)) {
return APPLICATION_CONFIGURATION_REMOVAL_IN_PROGRESS;
switch (state) {
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment