summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/inspect.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/pods/inspect.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/pods/inspect.go')
-rw-r--r--cmd/podman/pods/inspect.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmd/podman/pods/inspect.go b/cmd/podman/pods/inspect.go
index d38f0062c..4bb88f48a 100644
--- a/cmd/podman/pods/inspect.go
+++ b/cmd/podman/pods/inspect.go
@@ -3,8 +3,6 @@ package pods
import (
"context"
"os"
- "text/tabwriter"
- "text/template"
"github.com/containers/common/pkg/report"
"github.com/containers/podman/v3/cmd/podman/common"
@@ -73,11 +71,14 @@ func inspect(cmd *cobra.Command, args []string) error {
row := report.NormalizeFormat(inspectOptions.Format)
- t, err := template.New("pod inspect").Parse(row)
+ t, err := report.NewTemplate("inspect").Parse(row)
if err != nil {
return err
}
- w := tabwriter.NewWriter(os.Stdout, 8, 2, 2, ' ', 0)
+ w, err := report.NewWriterDefault(os.Stdout)
+ if err != nil {
+ return err
+ }
return t.Execute(w, *responses)
}