summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorPaul Holzinger <paul.holzinger@web.de>2021-01-27 10:42:22 +0100
committerPaul Holzinger <paul.holzinger@web.de>2021-01-27 10:44:54 +0100
commitf79d68eeae7dbc2c1a6dc2d52a24eeed23ed36ab (patch)
tree4c988f39ee07048102335af1c337d7aa9eb14ed7 /cmd/podman
parent79565d1af18f07754e067b7203f42122d8fc03a9 (diff)
downloadpodman-f79d68eeae7dbc2c1a6dc2d52a24eeed23ed36ab.tar.gz
podman-f79d68eeae7dbc2c1a6dc2d52a24eeed23ed36ab.tar.bz2
podman-f79d68eeae7dbc2c1a6dc2d52a24eeed23ed36ab.zip
Fix podman history --no-trunc for the CREATED BY field
Fixes #9120 Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/images/history.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/history.go b/cmd/podman/images/history.go
index 964c7a975..af40dd73a 100644
--- a/cmd/podman/images/history.go
+++ b/cmd/podman/images/history.go
@@ -162,7 +162,7 @@ func (h historyReporter) Size() string {
}
func (h historyReporter) CreatedBy() string {
- if len(h.ImageHistoryLayer.CreatedBy) > 45 {
+ if !opts.noTrunc && len(h.ImageHistoryLayer.CreatedBy) > 45 {
return h.ImageHistoryLayer.CreatedBy[:45-3] + "..."
}
return h.ImageHistoryLayer.CreatedBy