From 449e2d7b97a25ef7d8b27c8ffd8a497cee6f1ef3 Mon Sep 17 00:00:00 2001 From: Rogger Vasquez Date: Wed, 11 May 2022 14:31:13 -0500 Subject: [PATCH] rpk: change error in cluster health flag description --- src/go/rpk/pkg/cli/cmd/cluster/health.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/go/rpk/pkg/cli/cmd/cluster/health.go b/src/go/rpk/pkg/cli/cmd/cluster/health.go index 72be9f5d2de7..9049e719e15c 100644 --- a/src/go/rpk/pkg/cli/cmd/cluster/health.go +++ b/src/go/rpk/pkg/cli/cmd/cluster/health.go @@ -24,8 +24,8 @@ import ( func NewHealthOverviewCommand(fs afero.Fs) *cobra.Command { var ( - wait bool - exit bool + watch bool + exit bool adminURL string adminEnableTLS bool @@ -63,7 +63,7 @@ following conditions are met: printHealthOverview(&ret) } lastOverview = ret - if !wait || exit && lastOverview.IsHealthy { + if !watch || exit && lastOverview.IsHealthy { break } time.Sleep(2 * time.Second) @@ -84,8 +84,8 @@ following conditions are met: &adminCAFile, ) - cmd.Flags().BoolVarP(&wait, "watch", "w", false, "blocks and writes out all cluster health changes") - cmd.Flags().BoolVarP(&exit, "exit-when-healthy", "e", false, "when used with wait, exits after cluster is back in healthy state") + cmd.Flags().BoolVarP(&watch, "watch", "w", false, "blocks and writes out all cluster health changes") + cmd.Flags().BoolVarP(&exit, "exit-when-healthy", "e", false, "when used with watch, exits after cluster is back in healthy state") return cmd }