add purchase resource in model catalog
This commit is contained in:
@@ -86,7 +86,7 @@ func (r *PricedResource) GetPrice() (float64, error) {
|
||||
if len(r.PricingProfiles) == 0 {
|
||||
return 0, errors.New("pricing profile must be set on Priced Resource " + r.ResourceID)
|
||||
}
|
||||
*r.SelectedPricing = r.PricingProfiles[0]
|
||||
r.SelectedPricing = &r.PricingProfiles[0]
|
||||
}
|
||||
pricing := *r.SelectedPricing
|
||||
return pricing.GetPrice(1, 0, *r.UsageStart, *r.UsageEnd)
|
||||
|
||||
Reference in New Issue
Block a user