Skip to content

Commit abad08d

Browse files
committed
Change kubectl list option stdout
1 parent a138be8 commit abad08d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ func (o AnnotateOptions) RunAnnotate() error {
364364
if err != nil {
365365
return err
366366
}
367-
fmt.Fprintf(o.ErrOut, "Listing annotations for %s.%s/%s:\n", gvks[0].Kind, gvks[0].Group, info.Name)
367+
fmt.Fprintf(o.Out, "Listing annotations for %s.%s/%s:\n", gvks[0].Kind, gvks[0].Group, info.Name)
368368
}
369369
for k, v := range accessor.GetAnnotations() {
370370
fmt.Fprintf(o.Out, "%s%s=%s\n", indent, k, v)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func (o *LabelOptions) RunLabel() error {
362362
if err != nil {
363363
return err
364364
}
365-
fmt.Fprintf(o.ErrOut, "Listing labels for %s.%s/%s:\n", gvks[0].Kind, gvks[0].Group, info.Name)
365+
fmt.Fprintf(o.Out, "Listing labels for %s.%s/%s:\n", gvks[0].Kind, gvks[0].Group, info.Name)
366366
}
367367
for k, v := range accessor.GetLabels() {
368368
fmt.Fprintf(o.Out, "%s%s=%s\n", indent, k, v)

0 commit comments

Comments
 (0)