add purchase resource in model catalog
This commit is contained in:
parent
52d5a1fbf9
commit
a573a4ce71
@ -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]
|
||||
}
|
||||
|
@ -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]
|
||||
}
|
||||
|
@ -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]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user