diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-11-17 11:12:06 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-11-17 11:13:32 -0700 |
commit | ca9276640f494989a3fde0e7bc47ce9ae69fb223 (patch) | |
tree | 098781d4796267e5db683298f0d09a41a8e385b3 /cmd/podman | |
parent | 12de330094fdcd2e2fd0d10d5e5ddd962193de8b (diff) | |
download | podman-ca9276640f494989a3fde0e7bc47ce9ae69fb223.tar.gz podman-ca9276640f494989a3fde0e7bc47ce9ae69fb223.tar.bz2 podman-ca9276640f494989a3fde0e7bc47ce9ae69fb223.zip |
Fix missing headers in `network ls`
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/networks/list.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/networks/list.go b/cmd/podman/networks/list.go index bab6b45ea..f2a5a431a 100644 --- a/cmd/podman/networks/list.go +++ b/cmd/podman/networks/list.go @@ -87,8 +87,11 @@ func networkList(cmd *cobra.Command, args []string) error { nlprs = append(nlprs, ListPrintReports{r}) } + // Headers() gets lost resolving the embedded field names so add them headers := report.Headers(ListPrintReports{}, map[string]string{ + "Name": "name", "CNIVersion": "version", + "Version": "version", "Plugins": "plugins", }) renderHeaders := true @@ -110,7 +113,6 @@ func networkList(cmd *cobra.Command, args []string) error { if err := tmpl.Execute(w, headers); err != nil { return err } - } return tmpl.Execute(w, nlprs) } |