Skip to content
Snippets Groups Projects

add state handler for APPLICATION_REMOVED

Merged Karol Beyrowski requested to merge 202-handle-app-deployment-state-transition into develop
1 file
+ 8
3
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading