mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
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:
commit
d682c83890
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user