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