Skip to content

Commit 16ea9dc

Browse files
authored
Merge pull request kubernetes#91423 from gaurav1086/kubectl_use_FprintF
kubectl: Use Fprintf
2 parents ec8a54b + b326948 commit 16ea9dc

File tree

1 file changed

+2
-2
lines changed
  • staging/src/k8s.io/kubectl/pkg/cmd/get

1 file changed

+2
-2
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/get/get.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,9 @@ func (o *GetOptions) Run(f cmdutil.Factory, cmd *cobra.Command, args []string) e
582582
if trackingWriter.Written == 0 && !o.IgnoreNotFound && len(allErrs) == 0 {
583583
// if we wrote no output, and had no errors, and are not ignoring NotFound, be sure we output something
584584
if allResourcesNamespaced {
585-
fmt.Fprintln(o.ErrOut, fmt.Sprintf("No resources found in %s namespace.", o.Namespace))
585+
fmt.Fprintf(o.ErrOut, "No resources found in %s namespace.\n", o.Namespace)
586586
} else {
587-
fmt.Fprintln(o.ErrOut, fmt.Sprintf("No resources found"))
587+
fmt.Fprintln(o.ErrOut, "No resources found")
588588
}
589589
}
590590
return utilerrors.NewAggregate(allErrs)

0 commit comments

Comments
 (0)