Skip to content

Commit

Permalink
print labels for images
Browse files Browse the repository at this point in the history
  • Loading branch information
jfchevrette committed Dec 17, 2017
1 parent 6912595 commit 340502b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/oc/cli/describe/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,14 @@ func printBuildConfigList(buildList *buildapi.BuildConfigList, w io.Writer, opts

func printImage(image *imageapi.Image, w io.Writer, opts kprinters.PrintOptions) error {
name := formatResourceName(opts.Kind, image.Name, opts.WithKind)
_, err := fmt.Fprintf(w, "%s\t%s\n", name, image.DockerImageReference)
return err

if _, err := fmt.Fprintf(w, "%s\t%s", name, image.DockerImageReference); err != nil {
return err
}
if err := appendItemLabels(image.Labels, w, opts.ColumnLabels, opts.ShowLabels); err != nil {
return err
}
return nil
}

func printImageStreamTag(ist *imageapi.ImageStreamTag, w io.Writer, opts kprinters.PrintOptions) error {
Expand Down

0 comments on commit 340502b

Please sign in to comment.