add sets up
This commit is contained in:
parent
d8ccdec501
commit
4c2ecd3f41
@ -597,7 +597,7 @@ func (l *LibData) ToBookings() *booking.Booking {
|
||||
}
|
||||
|
||||
func (l *LibData) ToPurchasedResource() *purchase_resource.PurchaseResource {
|
||||
if l.Data.GetAccessor(nil).GetType() == tools.COMPUTE_UNITS {
|
||||
if l.Data.GetAccessor(nil).GetType() == tools.PURCHASE_RESOURCE {
|
||||
return l.Data.(*purchase_resource.PurchaseResource)
|
||||
}
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user