Skip to content

Commit d682c83

Browse files
authored
Merge pull request kubernetes#88765 from brianpursley/kubectl-816-take2
Change kubectl cluster-info dump to not display output location message when output is stdout
2 parents 48676ad + 6de1405 commit d682c83

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/clusterinfo/clusterinfo_dump.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ func (o *ClusterInfoDumpOptions) Run() error {
300300
}
301301

302302
dest := o.OutputDir
303-
if len(dest) == 0 {
304-
dest = "standard output"
305-
}
306-
if dest != "-" {
303+
if len(dest) > 0 && dest != "-" {
307304
fmt.Fprintf(o.Out, "Cluster info dumped to %s\n", dest)
308305
}
309306
return nil

0 commit comments

Comments
 (0)