Skip to content

Commit

Permalink
examples: update based on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Nov 9, 2023
1 parent c1db396 commit 49efe08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 94 deletions.
4 changes: 2 additions & 2 deletions examples/install-firmware/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func main() {
}
defer fh.Close()

taskID, err := cl.FirmwareInstall(ctx, *component, constants.FirmwareApplyOnReset, true, fh)
taskID, err := cl.FirmwareInstall(ctx, *component, string(constants.OnReset), true, fh)
if err != nil {
l.Fatal(err)
}
Expand Down Expand Up @@ -125,7 +125,7 @@ func main() {
l.WithFields(logrus.Fields{"state": state, "component": *component}).Info("firmware install completed")
os.Exit(0)

case constants.FirmwareInstallPowerCyleHost:
case constants.FirmwareInstallPowerCycleHost:
l.WithFields(logrus.Fields{"state": state, "component": *component}).Info("host powercycle required")

if _, err := cl.SetPowerState(ctx, "cycle"); err != nil {
Expand Down
92 changes: 0 additions & 92 deletions examples/main.go

This file was deleted.

0 comments on commit 49efe08

Please sign in to comment.