summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-11-18 09:09:53 -0700
committerJhon Honce <jhonce@redhat.com>2020-12-02 10:50:37 -0700
commit2a02833e9fe533d3e3c6bb05edeec769638a18af (patch)
treed2fbf3b4f3bf69deb8488e8bc52e6e0eb5d62e38 /cmd/podman
parente82ec90007af82ee297eec0cb3973801cd383264 (diff)
downloadpodman-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/podman')
-rw-r--r--cmd/podman/images/list.go4
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)
}