diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-02 20:25:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 20:25:54 +0100 |
commit | d45676549d67033364f6777765054073036cfc32 (patch) | |
tree | b5b821f988f6ee6a78919d48824dc66f90e525bd /cmd | |
parent | 2e55543ccab5ece6b005dbbc026774b9e0de665c (diff) | |
parent | 2a02833e9fe533d3e3c6bb05edeec769638a18af (diff) | |
download | podman-d45676549d67033364f6777765054073036cfc32.tar.gz podman-d45676549d67033364f6777765054073036cfc32.tar.bz2 podman-d45676549d67033364f6777765054073036cfc32.zip |
Merge pull request #8392 from jwhonce/wip/report
Fix `podman images...` missing headers in table templates
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/images/list.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/images/list.go b/cmd/podman/images/list.go index bcb31e6ee..8a7951923 100644 --- a/cmd/podman/images/list.go +++ b/cmd/podman/images/list.go @@ -126,8 +126,8 @@ func images(cmd *cobra.Command, args []string) error { case listFlag.quiet: return writeID(imgs) default: - if cmd.Flag("format").Changed { - listFlag.noHeading = true // V1 compatibility + if cmd.Flags().Changed("format") && !parse.HasTable(listFlag.format) { + listFlag.noHeading = true } return writeTemplate(imgs) } |