diff options
Diffstat (limited to 'client/go/cmd/clusterstate/get_cluster_state.go')
-rw-r--r-- | client/go/cmd/clusterstate/get_cluster_state.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/go/cmd/clusterstate/get_cluster_state.go b/client/go/cmd/clusterstate/get_cluster_state.go index 90e4351e855..cb8c0b97d04 100644 --- a/client/go/cmd/clusterstate/get_cluster_state.go +++ b/client/go/cmd/clusterstate/get_cluster_state.go @@ -12,6 +12,7 @@ import ( "github.com/fatih/color" "github.com/spf13/cobra" "github.com/vespa-engine/vespa/client/go/build" + "github.com/vespa-engine/vespa/client/go/envvars" "github.com/vespa-engine/vespa/client/go/trace" ) @@ -39,7 +40,7 @@ func runGetClusterState(opts *Options) { if opts.Silent { trace.Silent() } - if opts.NoColors || os.Getenv("TERM") == "" { + if opts.NoColors || os.Getenv(envvars.TERM) == "" { color.NoColor = true } trace.Debug("run getClusterState with: ", opts) |