Skip to content

Commit

Permalink
fix: failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lasse-sap committed Nov 18, 2024
1 parent e8b4294 commit 95ed2f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/clients/entitlement/entitlement.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,12 @@ func filterAssignedServices(payload *entclient.EntitledAndAssignedServicesRespon
return nil, errPlan
}

errUnique := filterAssignedServicePlanByUniqueID(assignedService, *cr.Spec.ForProvider.ServicePlanUniqueIdentifier)
if cr.Spec.ForProvider.ServicePlanUniqueIdentifier != nil {
errUnique := filterAssignedServicePlanByUniqueID(assignedService, *cr.Spec.ForProvider.ServicePlanUniqueIdentifier)

if errUnique != nil {
return nil, errUnique
if errUnique != nil {
return nil, errUnique
}
}

foundAssignment, errLook := lookupAssignmentAndAssign(servicePlan, cr)
Expand Down

0 comments on commit 95ed2f2

Please sign in to comment.