From 66f1998ddaf902eec9c36f65087b63085cc1b897 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 Kubernetes-commit: b326948a9a317dbc17c6f32dfeea26e090bde3b0 --- pkg/cmd/get/get.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/get/get.go b/pkg/cmd/get/get.go index 6cd180cb2..5c5999f4f 100644 --- a/pkg/cmd/get/get.go +++ b/pkg/cmd/get/get.go @@ -582,9 +582,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)