From 4da29b043994691bc26d9f5a6746ff61109af136 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Fri, 22 Dec 2023 17:30:47 +0100 Subject: [PATCH] Set correct ItemDescription Signed-off-by: Nicolas Bigler --- pkg/cloudscale/objectstorage.go | 2 +- pkg/exoscale/objectstorage.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cloudscale/objectstorage.go b/pkg/cloudscale/objectstorage.go index 834710a..7ca2213 100644 --- a/pkg/cloudscale/objectstorage.go +++ b/pkg/cloudscale/objectstorage.go @@ -138,7 +138,7 @@ func (o *ObjectStorage) createOdooRecord(bucketMetricsData cloudscale.BucketMetr { ProductID: productIdStorage, InstanceID: instanceId, - ItemDescription: "AppCat Cloudscale ObjectStorage", + ItemDescription: bucketMetricsData.Subject.BucketName, ItemGroupDescription: itemGroup, SalesOrder: salesOrder, UnitID: o.uomMapping[units[productIdStorage]], diff --git a/pkg/exoscale/objectstorage.go b/pkg/exoscale/objectstorage.go index 8ef5104..8838ddc 100644 --- a/pkg/exoscale/objectstorage.go +++ b/pkg/exoscale/objectstorage.go @@ -127,7 +127,7 @@ func (o *ObjectStorage) getOdooMeteredBillingRecords(ctx context.Context, sosBuc o := odoo.OdooMeteredBillingRecord{ ProductID: productIdStorage, InstanceID: instanceId, - ItemDescription: "AppCat Exoscale ObjectStorage", + ItemDescription: bucketDetail.BucketName, ItemGroupDescription: itemGroup, SalesOrder: salesOrder, UnitID: o.uomMapping[odoo.GBDay],