mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #43062 from mkumatag/genfed
Automatic merge from submit-queue Enhance message in cluster-info dump **What this PR does / why we need it**: This PR fixes the information message prints in the end after the cluster-info dump command. - Added newline in the end - Enhanced the message for dumping information to standard out **Which issue this PR fixes** * **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
830c1b06b1
@ -224,10 +224,10 @@ func dumpClusterInfo(f cmdutil.Factory, cmd *cobra.Command, out io.Writer) error
|
||||
}
|
||||
dir := cmdutil.GetFlagString(cmd, "output-directory")
|
||||
if len(dir) == 0 {
|
||||
dir = "."
|
||||
dir = "standard output"
|
||||
}
|
||||
if dir != "-" {
|
||||
fmt.Fprintf(out, "Cluster info dumped to %s", dir)
|
||||
fmt.Fprintf(out, "Cluster info dumped to %s\n", dir)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user