aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-09-06 15:56:20 +0200
committerGitHub <noreply@github.com>2022-09-06 15:56:20 +0200
commitcd09e3b6d0b0eb32f6ad6062b13194f97873c664 (patch)
tree4085431a41211c38147801849204b92c77279640 /cmd/podman
parent46e9178ef64ca1e7513251770ccab982eb5f9801 (diff)
parent77ab6125f2f7e84a180085c66dd94cc81b42b5ef (diff)
downloadpodman-cd09e3b6d0b0eb32f6ad6062b13194f97873c664.tar.gz
podman-cd09e3b6d0b0eb32f6ad6062b13194f97873c664.tar.bz2
podman-cd09e3b6d0b0eb32f6ad6062b13194f97873c664.zip
Merge pull request #15644 from Luap99/event-format
fix podman events with custom format
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/system/events.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/system/events.go b/cmd/podman/system/events.go
index b04668f86..3c6a35e83 100644
--- a/cmd/podman/system/events.go
+++ b/cmd/podman/system/events.go
@@ -85,7 +85,9 @@ func eventsCmd(cmd *cobra.Command, _ []string) error {
doJSON = report.IsJSON(eventFormat)
if !doJSON {
var err error
- rpt, err = report.New(os.Stdout, cmd.Name()).Parse(report.OriginUser, eventFormat)
+ // Use OriginUnknown so it does not add an extra range since it
+ // will only be called for each single element and not a slice.
+ rpt, err = report.New(os.Stdout, cmd.Name()).Parse(report.OriginUnknown, eventFormat)
if err != nil {
return err
}