From c42d133b2c8f5231f7ec0c9e8fef56d746f93f61 Mon Sep 17 00:00:00 2001 From: donald1218 Date: Thu, 17 Oct 2024 06:35:19 +0000 Subject: [PATCH] fix: fixed nrf_deregister err type error --- internal/sbi/consumer/nrf_service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/sbi/consumer/nrf_service.go b/internal/sbi/consumer/nrf_service.go index 0bde016..18f64de 100644 --- a/internal/sbi/consumer/nrf_service.go +++ b/internal/sbi/consumer/nrf_service.go @@ -316,7 +316,8 @@ func (s *nnrfService) SendDeregisterNFInstance() (problemDetails *models.Problem if err != nil { if apiErr, ok := err.(openapi.GenericOpenAPIError); ok { // API error - problemDetails = apiErr.Model().(*models.ProblemDetails) + derigister_err := apiErr.Model().(Nnrf_NFManagement.DeregisterNFInstanceError) + problemDetails = &derigister_err.ProblemDetails } }