Skip to content

Commit

Permalink
asrockrack: use helper method from the common package
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Nov 7, 2023
1 parent 13ec5fb commit 395c5c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions providers/asrockrack/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package asrockrack
import (
"context"

"github.com/bmc-toolbox/bmclib/v2/constants"
"github.com/bmc-toolbox/common"
)

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 395c5c8

Please sign in to comment.