diff --git a/internal/sbi/processor/smpolicy.go b/internal/sbi/processor/smpolicy.go index 5ba57ec..c56fbe3 100644 --- a/internal/sbi/processor/smpolicy.go +++ b/internal/sbi/processor/smpolicy.go @@ -426,13 +426,13 @@ func (p *Processor) HandleCreateSmPolicyRequest( if bsfUri != "" { bsfClient := util.GetNbsfClient(bsfUri) - ctx, pd, err = p.Context().GetTokenCtx(models.ServiceName_NBSF_MANAGEMENT, models.NfType_BSF) + ctx, pd, err := p.Context().GetTokenCtx(models.ServiceName_NBSF_MANAGEMENT, models.NfType_BSF) if err != nil { c.JSON(int(pd.Status), pd) return } - _, resp, err = bsfClient.PCFBindingsCollectionApi.CreatePCFBinding(ctx, pcfBinding) + _, resp, err := bsfClient.PCFBindingsCollectionApi.CreatePCFBinding(ctx, pcfBinding) if err != nil || resp == nil || resp.StatusCode != http.StatusCreated { logger.SmPolicyLog.Warnf("Create PCF binding data in BSF error[%+v]", err) // Uncomment the following to return error response --> PDU SessEstReq will fail