mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Merge branch 'main' into 71-bug-redfishv1updateserviceactionssimpleupdate-gives-errors-for-openbmc
Signed-off-by: David Allen <16520934+davidallendj@users.noreply.github.com>
This commit is contained in:
commit
ac4f591061
2 changed files with 5 additions and 19 deletions
|
|
@ -38,7 +38,7 @@ func UpdateFirmwareRemote(q *UpdateParams) error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to parse URI: %w", err)
|
||||
}
|
||||
|
||||
|
||||
// Connect to the Redfish service using gofish
|
||||
client, err := gofish.Connect(gofish.ClientConfig{Endpoint: uri.String(), Username: q.Username, Password: q.Password, Insecure: q.Insecure})
|
||||
if err != nil {
|
||||
|
|
@ -64,6 +64,7 @@ func UpdateFirmwareRemote(q *UpdateParams) error {
|
|||
return fmt.Errorf("firmware update failed: %w", err)
|
||||
}
|
||||
fmt.Println("Firmware update initiated successfully.")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue