Skip to content

Commit

Permalink
Use BoardMfg instead of Manufacturer for deducing firmware vendor. (#119
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Gerrit91 authored Nov 11, 2021
1 parent 7e3d453 commit bc08e44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ func (c *config) firmwareData(args []string) (*models.V1MachineIPMIResponse, str
}

fru := *m.Ipmi.Fru
vendor := strings.ToLower(fru.ProductManufacturer)
vendor := strings.ToLower(fru.BoardMfg)
board := strings.ToUpper(fru.BoardPartNumber)

return m, vendor, board, nil
Expand Down Expand Up @@ -1157,9 +1157,6 @@ func (c *config) machineIpmi(args []string) error {
if filterOpts.Hostname != "" {
mfr.AllocationHostname = &filterOpts.Hostname
}
if filterOpts.Hostname != "" {
mfr.AllocationHostname = &filterOpts.Hostname
}
if filterOpts.Mac != "" {
mfr.NicsMacAddresses = []string{filterOpts.Mac}
}
Expand Down

0 comments on commit bc08e44

Please sign in to comment.