From c5684c3e3a81d58eedc3dbee3d943ba20c6ddfa5 Mon Sep 17 00:00:00 2001 From: Oleg Mitsura Date: Tue, 23 Nov 2021 09:23:44 -0500 Subject: CCSDK-3531 improve cmd-exec returned err msg Issue-ID: CCSDK-3531 Improve end-user CBA's Python scripts ability to return error messages on failues. See JIRA story for examples: https://jira.onap.org/browse/CCSDK-3531 adds functions send_response_err_msg(err_message) and send_response_err_msg_and_exit(ret_err_msg, code=1) Signed-off-by: Oleg Mitsura Change-Id: Ideda64dd108f987c3c4515c70daf9f7b6d2b1f2f --- components/model-catalog/proto-definition/proto/CommandExecutor.proto | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'components') diff --git a/components/model-catalog/proto-definition/proto/CommandExecutor.proto b/components/model-catalog/proto-definition/proto/CommandExecutor.proto index 752dd8031..22aeacb51 100644 --- a/components/model-catalog/proto-definition/proto/CommandExecutor.proto +++ b/components/model-catalog/proto-definition/proto/CommandExecutor.proto @@ -63,15 +63,13 @@ message Identifiers { string blueprintUUID = 3; } -// TODO: need to rething whether we want to include subrequest/correlationID/etc to be consistent -// or drop requestId as it would be returned back to the context where these values are already known. -// and we may just be concerned with the response/status message ExecutionOutput { string requestId = 1; repeated string response = 2; ResponseStatus status = 3; google.protobuf.Timestamp timestamp = 4; string payload = 5; + string errMsg = 6; } enum ResponseStatus { -- cgit 1.2.3-korg