From c3f89638388610158d5f9741d62ca3fa9eedf76e Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" Date: Thu, 16 Nov 2023 04:01:54 +0000 Subject: [PATCH] fix variable name --- internal/sbi/consumer/nf_accesstoken.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/sbi/consumer/nf_accesstoken.go b/internal/sbi/consumer/nf_accesstoken.go index 76c31b3c..2c03b9f0 100644 --- a/internal/sbi/consumer/nf_accesstoken.go +++ b/internal/sbi/consumer/nf_accesstoken.go @@ -13,8 +13,8 @@ import ( func GetTokenCtx(scope, targetNF string) (context.Context, *models.ProblemDetails, error) { if amf_context.GetSelf().OAuth2Required { logger.ConsumerLog.Debugln("GetToekenCtx") - udrSelf := amf_context.GetSelf() - tok, pd, err := oauth.SendAccTokenReq(udrSelf.NfId, models.NfType_AMF, scope, targetNF, udrSelf.NrfUri) + amfSelf := amf_context.GetSelf() + tok, pd, err := oauth.SendAccTokenReq(amfSelf.NfId, models.NfType_AMF, scope, targetNF, amfSelf.NrfUri) if err != nil { return nil, pd, err }