mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
refactor: improvements to CLI and update pkg
This commit is contained in:
parent
2fca8f9166
commit
c950532e88
8 changed files with 86 additions and 87 deletions
|
|
@ -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),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue