Skip to content

Commit

Permalink
Utilize gofish's UpdateBiosAttributesApplyAt and force OnReset for Ap…
Browse files Browse the repository at this point in the history
…plyAt
  • Loading branch information
splaspood committed Apr 12, 2024
1 parent 8ed00c2 commit a46f75c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/redfishwrapper/bios.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

bmclibErrs "github.com/bmc-toolbox/bmclib/v2/errors"
"github.com/stmcginnis/gofish/common"
"github.com/stmcginnis/gofish/redfish"
)

Expand Down Expand Up @@ -58,7 +59,8 @@ func (c *Client) SetBiosConfiguration(ctx context.Context, biosConfig map[string
return err
}

err = bios.UpdateBiosAttributes(settingsAttributes)
// TODO(jwb) We should handle passing different apply times here
err = bios.UpdateBiosAttributesApplyAt(settingsAttributes, common.OnResetApplyTime)

if err != nil {
return err
Expand Down

0 comments on commit a46f75c

Please sign in to comment.