diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2021-01-27 10:42:22 +0100 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-01-29 15:23:10 -0500 |
commit | b4aa54c7561f7093f795093a72c75248018f3517 (patch) | |
tree | 7f72f8782547aa9aaadc741d9a8ab06f11a20204 /cmd | |
parent | bb88db783c1756291e8047a1a7ffd214477f7f9b (diff) | |
download | podman-b4aa54c7561f7093f795093a72c75248018f3517.tar.gz podman-b4aa54c7561f7093f795093a72c75248018f3517.tar.bz2 podman-b4aa54c7561f7093f795093a72c75248018f3517.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')
-rw-r--r-- | cmd/podman/images/history.go | 2 |
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 |