diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-11-18 09:09:53 -0700 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-12-07 15:14:49 -0500 |
commit | 3f6197e3d2a55ab843dee7be922706a079d875a4 (patch) | |
tree | 08edd76b705389e8ee9c13e9bfd6e8b7ac006371 /cmd/podman | |
parent | fa9ad1671e9b3433c6b5fb0c393cebca70a0811b (diff) | |
download | podman-3f6197e3d2a55ab843dee7be922706a079d875a4.tar.gz podman-3f6197e3d2a55ab843dee7be922706a079d875a4.tar.bz2 podman-3f6197e3d2a55ab843dee7be922706a079d875a4.zip |
Fix `podman images...` missing headers in table templates
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman')
-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) } |