Skip to content

Commit

Permalink
fix: fixed nrf_deregister err type error
Browse files Browse the repository at this point in the history
  • Loading branch information
donald1218 committed Oct 17, 2024
1 parent 53088a9 commit 9aec463
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/sbi/consumer/nrf_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 9aec463

Please sign in to comment.