From 2a02833e9fe533d3e3c6bb05edeec769638a18af Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 18 Nov 2020 09:09:53 -0700 Subject: Fix `podman images...` missing headers in table templates Signed-off-by: Jhon Honce --- cmd/podman/images/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd/podman/images') 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) } -- cgit v1.2.3-54-g00ecf