aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/system/connection/list.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/system/connection/list.go')
-rw-r--r--cmd/podman/system/connection/list.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/podman/system/connection/list.go b/cmd/podman/system/connection/list.go
index 6d3d85d11..9010ec803 100644
--- a/cmd/podman/system/connection/list.go
+++ b/cmd/podman/system/connection/list.go
@@ -75,7 +75,11 @@ func list(_ *cobra.Command, _ []string) error {
// TODO: Allow user to override format
format := "{{range . }}{{.Name}}\t{{.Identity}}\t{{.URI}}\n{{end}}"
- tmpl := template.Must(template.New("connection").Parse(format))
+ tmpl, err := template.New("connection").Parse(format)
+ if err != nil {
+ return err
+ }
+
w := tabwriter.NewWriter(os.Stdout, 8, 2, 2, ' ', 0)
defer w.Flush()