From 78e6a947f8534c12a6e4e8d1d7eb181d81c82240 Mon Sep 17 00:00:00 2001 From: Nathan Hemingway Date: Thu, 6 Jan 2022 12:33:53 -0800 Subject: [PATCH] add option to check faults during upgrade --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index bd91443..31c4aa2 100644 --- a/main.go +++ b/main.go @@ -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 @@ -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