add purchase resource in model catalog

This commit is contained in:
mr
2025-02-11 08:30:38 +01:00
parent a573a4ce71
commit ffaa67fb5d
2 changed files with 13 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ func (r *PricedResource) GetPrice() (float64, error) {
}
if r.SelectedPricing == nil {
if len(r.PricingProfiles) == 0 {
return 0, errors.New("pricing profile must be set on Priced Resource" + r.ResourceID)
return 0, errors.New("pricing profile must be set on Priced Resource " + r.ResourceID)
}
*r.SelectedPricing = r.PricingProfiles[0]
}