diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-14 15:23:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-14 15:23:03 +0200 |
commit | 26c15358d23339e068286ab2bdf8fedb14e90dbd (patch) | |
tree | 6e8c639dda901f44a10624d933051650248855b2 | |
parent | d8853429eb13f1b244cc8c921fb845f7de8dee04 (diff) | |
parent | a8192cd76044bb5f82e7ab1d761e34fc21e15432 (diff) | |
download | podman-26c15358d23339e068286ab2bdf8fedb14e90dbd.tar.gz podman-26c15358d23339e068286ab2bdf8fedb14e90dbd.tar.bz2 podman-26c15358d23339e068286ab2bdf8fedb14e90dbd.zip |
Merge pull request #5807 from openSUSE/pids-ctr-path
Fix invalid container path comparison for pid cgroup
-rw-r--r-- | pkg/cgroups/pids.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cgroups/pids.go b/pkg/cgroups/pids.go index 92f82553b..b2bfebe4d 100644 --- a/pkg/cgroups/pids.go +++ b/pkg/cgroups/pids.go @@ -44,7 +44,7 @@ func (c *pidHandler) Destroy(ctr *CgroupControl) error { // Stat fills a metrics structure with usage stats for the controller func (c *pidHandler) Stat(ctr *CgroupControl, m *Metrics) error { - if ctr.path != "" { + if ctr.path == "" { // nothing we can do to retrieve the pids.current path return nil } |