mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Changed kubectl cluster-info dump to not display "Cluster info dumped to standard output" message when output is stdout
This commit is contained in:
parent
79e1ad2f4b
commit
6de140567b
@ -300,10 +300,7 @@ func (o *ClusterInfoDumpOptions) Run() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dest := o.OutputDir
|
dest := o.OutputDir
|
||||||
if len(dest) == 0 {
|
if len(dest) > 0 && dest != "-" {
|
||||||
dest = "standard output"
|
|
||||||
}
|
|
||||||
if dest != "-" {
|
|
||||||
fmt.Fprintf(o.Out, "Cluster info dumped to %s\n", dest)
|
fmt.Fprintf(o.Out, "Cluster info dumped to %s\n", dest)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user