From 395c5c8e8be760a6402a2a51d647aef98cf5d31a Mon Sep 17 00:00:00 2001 From: Joel Rebello Date: Tue, 7 Nov 2023 14:51:44 +0100 Subject: [PATCH] asrockrack: use helper method from the common package --- providers/asrockrack/inventory.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/providers/asrockrack/inventory.go b/providers/asrockrack/inventory.go index f1ad88ef..5b0f2b3c 100644 --- a/providers/asrockrack/inventory.go +++ b/providers/asrockrack/inventory.go @@ -3,7 +3,6 @@ package asrockrack import ( "context" - "github.com/bmc-toolbox/bmclib/v2/constants" "github.com/bmc-toolbox/common" ) @@ -181,7 +180,7 @@ func (a *ASRockRack) systemAttributes(ctx context.Context, device *common.Device if component.ProductManufacturerName == "N/A" && component.ProductPartNumber != "N/A" { - vendor = constants.VendorFromProductName(component.ProductPartNumber) + vendor = common.FormatVendorName(component.ProductPartNumber) } device.Drives = append(device.Drives,