From 6c338a5655f569adff88d9317e7482f1482b455d Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Fri, 6 Oct 2023 19:18:46 +0100 Subject: Conflicting Error code -Used common error codes for NCMP responses Issue-ID: CPS-1904 Signed-off-by: sourabh_sourabh Change-Id: Id2beaa9f3d49dffd0a193b05fbaa7a6dd801e34a Signed-off-by: sourabh_sourabh --- .../cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cps-ncmp-rest/src/main/java/org/onap') diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java index 87f9d835a1..cd61c5a4a5 100755 --- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java +++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/NetworkCmProxyInventoryController.java @@ -126,7 +126,7 @@ public class NetworkCmProxyInventoryController implements NetworkCmProxyInventor final CmHandleRegistrationResponse registrationResponse) { return new CmHandlerRegistrationErrorResponse() .cmHandle(registrationResponse.getCmHandle()) - .errorCode(registrationResponse.getRegistrationError().errorCode) + .errorCode(registrationResponse.getNcmpResponseStatus().getCode()) .errorText(registrationResponse.getErrorText()); } -- cgit 1.2.3-korg