diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-11-18 09:09:53 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-12-02 10:50:37 -0700 |
commit | 2a02833e9fe533d3e3c6bb05edeec769638a18af (patch) | |
tree | d2fbf3b4f3bf69deb8488e8bc52e6e0eb5d62e38 /cmd | |
parent | e82ec90007af82ee297eec0cb3973801cd383264 (diff) | |
download | podman-2a02833e9fe533d3e3c6bb05edeec769638a18af.tar.gz podman-2a02833e9fe533d3e3c6bb05edeec769638a18af.tar.bz2 podman-2a02833e9fe533d3e3c6bb05edeec769638a18af.zip |
Fix `podman images...` missing headers in table templates
Signed-off-by: Jhon Honce <jhonce@redhat.com>
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) } |