diff options
author | Neville Cain <neville.cain@qonto.eu> | 2019-12-25 02:46:39 +0100 |
---|---|---|
committer | Neville Cain <neville.cain@qonto.eu> | 2019-12-28 00:03:57 +0100 |
commit | 8bc394ce6ec597f3c5bfb0fab5eb39b51afbe67d (patch) | |
tree | 1a1bbbbe88c70ee95e28746e413c6d26aff7dfa3 /libpod/runtime_ctr.go | |
parent | c759c3f78dcbbf5dec462a863ad25cd41a1707b7 (diff) | |
download | podman-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/runtime_ctr.go')
-rw-r--r-- | libpod/runtime_ctr.go | 2 |
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 } |