refactor: improvements to CLI and update pkg

This commit is contained in:
David Allen 2025-03-28 13:12:38 -06:00 committed by David Allen
parent b7761c2cbf
commit 92b05a81c7
Signed by: towk
GPG key ID: 0430CDBE22619155
8 changed files with 86 additions and 87 deletions

View file

@ -10,9 +10,7 @@ import (
type UpdateParams struct {
CollectParams
FirmwarePath string
FirmwareVersion string
Component string
FirmwareURI string
TransferProtocol string
Insecure bool
}
@ -51,7 +49,7 @@ func UpdateFirmwareRemote(q *UpdateParams) error {
// Build the update request payload
req := redfish.SimpleUpdateParameters{
ImageURI: q.FirmwarePath,
ImageURI: q.FirmwareURI,
TransferProtocol: redfish.TransferProtocolType(q.TransferProtocol),
}