Changed kubectl cluster-info dump to not display "Cluster info dumped to standard output" message when output is stdout

Kubernetes-commit: 6de140567b37f6f41404237860a1c17e45e45296
This commit is contained in:
Brian Pursley 2020-03-03 09:18:16 -05:00 committed by Kubernetes Publisher
parent 2ed6a3934c
commit 4f87593204
1 changed files with 1 additions and 4 deletions

View File

@ -300,10 +300,7 @@ func (o *ClusterInfoDumpOptions) Run() error {
}
dest := o.OutputDir
if len(dest) == 0 {
dest = "standard output"
}
if dest != "-" {
if len(dest) > 0 && dest != "-" {
fmt.Fprintf(o.Out, "Cluster info dumped to %s\n", dest)
}
return nil