Skip to content

Commit

Permalink
condition/firmware_install: include RequireHostPoweredOff task parameter
Browse files Browse the repository at this point in the history
When true, flasher will expect the host to be powered off before proceeding
If the host is not already powered off - the install task will be failed.
  • Loading branch information
joelrebel committed Oct 20, 2023
1 parent 08ce7f1 commit c7be192
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions condition/firmware_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ type FirmwareInstallTaskParameters struct {
// No firmware installs will be attempted and if the device is powered off, it will not be powered on.
DryRun bool `json:"dry_run,omitempty"`

// When true, flasher will expect the host to be powered off before proceeding,
// if the host is not already powered off - the install task will be failed.
RequireHostPoweredOff bool `json:"request_host_powered_off,omitempty"`

// Task priority is the task priority between 0 and 3
// where 0 is the default and 3 is the max.
//
Expand Down

0 comments on commit c7be192

Please sign in to comment.