summaryrefslogtreecommitdiff
path: root/cmd/podman/pods
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2020-10-13 09:05:38 -0400
committerAshley Cui <acui@redhat.com>2020-10-13 09:08:13 -0400
commit8f603a76f6d7a0a34e5dcb677b8a9e5b87ba0157 (patch)
treec0c9dbc434f1e17eb6bd09bd232dd2c7aa00ca3f /cmd/podman/pods
parent212011f166d6f56421fcc5260def999e71156d32 (diff)
downloadpodman-8f603a76f6d7a0a34e5dcb677b8a9e5b87ba0157.tar.gz
podman-8f603a76f6d7a0a34e5dcb677b8a9e5b87ba0157.tar.bz2
podman-8f603a76f6d7a0a34e5dcb677b8a9e5b87ba0157.zip
Restore --format: stats & pod ps
Restore formatting for stats Fix formatting for pod ps Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'cmd/podman/pods')
-rw-r--r--cmd/podman/pods/ps.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/cmd/podman/pods/ps.go b/cmd/podman/pods/ps.go
index b7952e6e3..0013cca02 100644
--- a/cmd/podman/pods/ps.go
+++ b/cmd/podman/pods/ps.go
@@ -106,12 +106,13 @@ func pods(cmd *cobra.Command, _ []string) error {
}
headers := report.Headers(ListPodReporter{}, map[string]string{
- "ContainerIds": "IDS",
- "ContainerNames": "NAMES",
- "ContainerStatuses": "STATUS",
- "Namespace": "NAMESPACES",
+ "Id": "POD ID",
+ "Name": "NAME",
+ "Status": "STATUS",
+ "Labels": "LABELS",
"NumberOfContainers": "# OF CONTAINERS",
- "InfraId": "INFRA ID",
+ "Created": "CREATED",
+ "InfraID": "INFRA ID",
})
row := podPsFormat()
if cmd.Flags().Changed("format") {
@@ -135,7 +136,7 @@ func pods(cmd *cobra.Command, _ []string) error {
}
func podPsFormat() string {
- row := []string{"{{.Id}}", "{{.Name}}", "{{.Status}}", "{{.Created}}}"}
+ row := []string{"{{.Id}}", "{{.Name}}", "{{.Status}}", "{{.Created}}", "{{.InfraID}}"}
if psInput.CtrIds {
row = append(row, "{{.ContainerIds}}")