summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorNeville Cain <neville.cain@qonto.eu>2019-12-25 02:46:39 +0100
committerNeville Cain <neville.cain@qonto.eu>2019-12-28 00:03:57 +0100
commit8bc394ce6ec597f3c5bfb0fab5eb39b51afbe67d (patch)
tree1a1bbbbe88c70ee95e28746e413c6d26aff7dfa3 /libpod
parentc759c3f78dcbbf5dec462a863ad25cd41a1707b7 (diff)
downloadpodman-8bc394ce6ec597f3c5bfb0fab5eb39b51afbe67d.tar.gz
podman-8bc394ce6ec597f3c5bfb0fab5eb39b51afbe67d.tar.bz2
podman-8bc394ce6ec597f3c5bfb0fab5eb39b51afbe67d.zip
Add the pod name when we use `podman ps -p`
The pod name does not appear when doing `podman ps -p`. It is missing as the documentation says: -p, --pod Print the ID and name of the pod the containers are associated with The pod name is added in the ps output and checked in unit tests. Closes #4703 Signed-off-by: NevilleC <neville.cain@qonto.eu>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_ctr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index 3cf70f417..51efc5996 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -768,7 +768,7 @@ func (r *Runtime) GetContainers(filters ...ContainerFilter) ([]*Container, error
return nil, define.ErrRuntimeStopped
}
- ctrs, err := r.state.AllContainers()
+ ctrs, err := r.GetAllContainers()
if err != nil {
return nil, err
}