Skip to content

Commit

Permalink
add option to check faults during upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
brightpuddle committed Jan 6, 2022
1 parent fe89711 commit 78e6a94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ type Config struct {
FaultsOnly bool `arg:"--faults-only" help:"Only monitor faults"`
RequestTimeout int `arg:"--request-timeout" help:"HTTP request timeout"`
LoginRetryInterval int `arg:"--login-retry-interval" help:"Login retry interval"`
AlwaysCheckFaults bool `arg:"--always-check-faults" help:"Continue to check faults during upgrades"`
}

// Description : App description for CLI interface
Expand Down Expand Up @@ -879,7 +880,7 @@ func requestLoop(fabric fabricObject) error {
if err != nil {
return err
}
if verifyUpgradeState(statuses) == stable {
if verifyUpgradeState(statuses) == stable || client.cfg.AlwaysCheckFaults {
currentFaults, err := getFaults()
if err != nil {
return err
Expand Down

0 comments on commit 78e6a94

Please sign in to comment.