Skip to content

Commit

Permalink
style: change GetAccessAndMobilityPolicyData return
Browse files Browse the repository at this point in the history
  • Loading branch information
HanHongChen committed Oct 24, 2024
1 parent 1f6be35 commit 65496da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/sbi/consumer/udr_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func (s *nudrService) GetBdtData(uri string, bdtRefId string) (
}

func (s *nudrService) GetAccessAndMobilityPolicyData(ue *pcf_context.UeContext) (
resp *DataRepository.ReadAccessAndMobilityPolicyDataResponse,
amPolicyData *models.AmPolicyData,
problemDetails *models.ProblemDetails, err error,
) {
if ue.Supi == "" {
Expand All @@ -211,9 +211,9 @@ func (s *nudrService) GetAccessAndMobilityPolicyData(ue *pcf_context.UeContext)
param := DataRepository.ReadAccessAndMobilityPolicyDataRequest{
UeId: &ue.Supi,
}
resp, err = client.AccessAndMobilityPolicyDataDocumentApi.ReadAccessAndMobilityPolicyData(ctx, &param)
resp, err := client.AccessAndMobilityPolicyDataDocumentApi.ReadAccessAndMobilityPolicyData(ctx, &param)
if err == nil {
return resp, nil, nil
return &resp.AmPolicyData, nil, nil
}
problem := err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails)
problemDetails = &problem
Expand Down
2 changes: 1 addition & 1 deletion internal/sbi/processor/ampolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (p *Processor) PostPoliciesProcedure(polAssoId string,
if amPolicy == nil {
amPolicy = ue.NewUeAMPolicyData(assolId, policyAssociationRequest)
}
amPolicy.AmPolicyData = &rsp.AmPolicyData
amPolicy.AmPolicyData = rsp
}

// TODO: according to PCF Policy to determine ServAreaRes, Rfsp, SuppFeat
Expand Down

0 comments on commit 65496da

Please sign in to comment.