summaryrefslogtreecommitdiff
path: root/cmd/podman/system/events.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-17 13:58:47 -0400
committerGitHub <noreply@github.com>2021-06-17 13:58:47 -0400
commit725b5001a17f703d95a3c88e4f58225c5290576b (patch)
treee1caa3b2d18ca0fed2a4fddb8c434e007dc604a6 /cmd/podman/system/events.go
parent814a8b6d715e1e8d729c58921695c65eec0e71bc (diff)
parentbd9987239dae148bfd3eea8540d21ae7715faff7 (diff)
downloadpodman-725b5001a17f703d95a3c88e4f58225c5290576b.tar.gz
podman-725b5001a17f703d95a3c88e4f58225c5290576b.tar.bz2
podman-725b5001a17f703d95a3c88e4f58225c5290576b.zip
Merge pull request #10688 from jwhonce/bz/1855983
Scrub podman commands to use report package
Diffstat (limited to 'cmd/podman/system/events.go')
-rw-r--r--cmd/podman/system/events.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/podman/system/events.go b/cmd/podman/system/events.go
index 4aa413ec6..677504cfc 100644
--- a/cmd/podman/system/events.go
+++ b/cmd/podman/system/events.go
@@ -4,7 +4,6 @@ import (
"context"
"fmt"
"os"
- "text/template"
"github.com/containers/common/pkg/completion"
"github.com/containers/common/pkg/report"
@@ -75,7 +74,7 @@ func eventsCmd(cmd *cobra.Command, _ []string) error {
errChannel := make(chan error)
var (
- tmpl *template.Template
+ tmpl *report.Template
doJSON bool
)
@@ -83,7 +82,7 @@ func eventsCmd(cmd *cobra.Command, _ []string) error {
doJSON = report.IsJSON(eventFormat)
if !doJSON {
var err error
- tmpl, err = template.New("events").Parse(eventFormat)
+ tmpl, err = report.NewTemplate("events").Parse(eventFormat)
if err != nil {
return err
}