Add status code when finishing with error (#1912)
This commit is contained in:
committed by
GitHub
parent
4a8be5ee75
commit
f91fff4934
@@ -124,7 +124,7 @@ public class DdiController {
|
|||||||
getDdiApi().putConfigData(configData, getTenantId(), getControllerId());
|
getDdiApi().putConfigData(configData, getTenantId(), getControllerId());
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendFeedback(final UpdateStatus updateStatus) {
|
public void sendFeedback(final UpdateStatus updateStatus) {
|
||||||
log.debug(LOG_PREFIX + "Send feedback {} -> {}", getTenantId(), getControllerId(), currentActionId, updateStatus);
|
log.debug(LOG_PREFIX + "Send feedback {} -> {}", getTenantId(), getControllerId(), currentActionId, updateStatus);
|
||||||
try {
|
try {
|
||||||
getDdiApi().postDeploymentBaseActionFeedback(updateStatus.feedback(), getTenantId(), getControllerId(),
|
getDdiApi().postDeploymentBaseActionFeedback(updateStatus.feedback(), getTenantId(), getControllerId(),
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ public record UpdateStatus(Status status, List<String> messages) {
|
|||||||
/**
|
/**
|
||||||
* Update has been not successful and response the error update.
|
* Update has been not successful and response the error update.
|
||||||
*/
|
*/
|
||||||
FAILURE(DdiStatus.ExecutionStatus.CLOSED, DdiResult.FinalResult.FAILURE, null);
|
FAILURE(DdiStatus.ExecutionStatus.CLOSED, DdiResult.FinalResult.FAILURE, 404);
|
||||||
|
|
||||||
private final DdiStatus.ExecutionStatus executionStatus;
|
private final DdiStatus.ExecutionStatus executionStatus;
|
||||||
private final DdiResult.FinalResult finalResult;
|
private final DdiResult.FinalResult finalResult;
|
||||||
|
|||||||
Reference in New Issue
Block a user