add purchase resource in model catalog

This commit is contained in:
mr 2025-02-11 07:55:15 +01:00 committed by pb
parent cd10104089
commit c9690fc1ba
3 changed files with 3 additions and 3 deletions

View File

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

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")
return 0, errors.New("pricing profile must be set on Priced Resource" + r.ResourceID)
}
*r.SelectedPricing = r.PricingProfiles[0]
}

View File

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