From b326948a9a317dbc17c6f32dfeea26e090bde3b0 Mon Sep 17 00:00:00 2001 From: Gaurav Singh Date: Mon, 25 May 2020 18:19:27 -0400 Subject: [PATCH] kubectl: Use Fprintf Signed-off-by: Gaurav Singh Fix typo Signed-off-by: Gaurav Singh Change Fprintf to Fprintln Signed-off-by: Gaurav Singh Use %q instead of %s Signed-off-by: Gaurav Singh Change %q to %s --- staging/src/k8s.io/kubectl/pkg/cmd/get/get.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)