diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go b/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go index d50edfc48e6..f066e45b426 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go @@ -586,9 +586,9 @@ func (o *GetOptions) Run(f cmdutil.Factory, cmd *cobra.Command, args []string) e if trackingWriter.Written == 0 && !o.IgnoreNotFound && len(allErrs) == 0 { // if we wrote no output, and had no errors, and are not ignoring NotFound, be sure we output something if allResourcesNamespaced { - fmt.Fprintln(o.ErrOut, fmt.Sprintf("No resources found in %s namespace.", o.Namespace)) + fmt.Fprintf(o.ErrOut, "No resources found in %s namespace.\n", o.Namespace) } else { - fmt.Fprintln(o.ErrOut, fmt.Sprintf("No resources found")) + fmt.Fprintln(o.ErrOut, "No resources found") } } return utilerrors.NewAggregate(allErrs)