diff --git a/internal/model/component.go b/internal/model/component.go index 6f0d49f0..adb35ed2 100644 --- a/internal/model/component.go +++ b/internal/model/component.go @@ -21,7 +21,7 @@ type Component struct { type Components []*Component // BySlug returns a component that matches the slug value. -func (c Components) BySlugVendorModel(cSlug, _ string, cModels []string) *Component { +func (c Components) BySlugVendorModel(cSlug string, cModels []string) *Component { for idx, component := range c { // skip non matching component slug if !strings.EqualFold(cSlug, component.Slug) { diff --git a/internal/outofband/action_handlers.go b/internal/outofband/action_handlers.go index 67e9272d..8f87d399 100644 --- a/internal/outofband/action_handlers.go +++ b/internal/outofband/action_handlers.go @@ -189,7 +189,7 @@ func (h *actionHandler) checkCurrentFirmware(a sw.StateSwitch, c sw.TransitionAr return err } - component := components.BySlugVendorModel(action.Firmware.Component, action.Firmware.Vendor, action.Firmware.Models) + component := components.BySlugVendorModel(action.Firmware.Component, action.Firmware.Models) if component == nil { tctx.Logger.WithFields( logrus.Fields{