summaryrefslogtreecommitdiff
path: root/cmd/podman/images/history.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-30 17:00:22 +0100
committerGitHub <noreply@github.com>2020-10-30 17:00:22 +0100
commite632f3f2588d00184a50a7328d54a31ccf973708 (patch)
treee7fb78c6ae6c81a77aac78015e7a0421de6d552c /cmd/podman/images/history.go
parent6b5a94cf2831df0633cc03a28f432177c0ee1d7b (diff)
parentd60a0ddcc1784b2dd807cc8e4d4f3deb0c074171 (diff)
downloadpodman-e632f3f2588d00184a50a7328d54a31ccf973708.tar.gz
podman-e632f3f2588d00184a50a7328d54a31ccf973708.tar.bz2
podman-e632f3f2588d00184a50a7328d54a31ccf973708.zip
Merge pull request #8187 from jwhonce/wip/table
Restore --format table header support
Diffstat (limited to 'cmd/podman/images/history.go')
-rw-r--r--cmd/podman/images/history.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/podman/images/history.go b/cmd/podman/images/history.go
index 3075218d1..e9751b365 100644
--- a/cmd/podman/images/history.go
+++ b/cmd/podman/images/history.go
@@ -11,6 +11,7 @@ import (
"unicode"
"github.com/containers/common/pkg/report"
+ "github.com/containers/podman/v2/cmd/podman/parse"
"github.com/containers/podman/v2/cmd/podman/registry"
"github.com/containers/podman/v2/pkg/domain/entities"
"github.com/docker/go-units"
@@ -119,7 +120,7 @@ func history(cmd *cobra.Command, args []string) error {
case opts.quiet:
row = "{{.ID}}\n"
}
- format := "{{range . }}" + row + "{{end}}"
+ format := parse.EnforceRange(row)
tmpl, err := template.New("report").Parse(format)
if err != nil {