Merge pull request #88765 from brianpursley/kubectl-816-take2

Change kubectl cluster-info dump to not display output location message when output is stdout
This commit is contained in:
Kubernetes Prow Robot 2020-03-04 10:20:02 -08:00 committed by GitHub
commit d682c83890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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