Properties properties = deployCommandParameters.properties;
String appName = deployCommandParameters.name();
cleanupPreservedResources(appName, properties);
}
} else if (Deployment.UNDEPLOYMENT_FAILURE.equals(event.type())) {
final UndeployCommandParameters undeployCommandParameters =
dc.getCommandParameters(UndeployCommandParameters.class);
if (undeployCommandParameters.origin == OpsParams.Origin.undeploy) {
Properties properties = undeployCommandParameters.properties;
String appName = undeployCommandParameters.name();
cleanupPreservedResources(appName, properties);
}
}
}