summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-14 15:23:03 +0200
committerGitHub <noreply@github.com>2020-04-14 15:23:03 +0200
commit26c15358d23339e068286ab2bdf8fedb14e90dbd (patch)
tree6e8c639dda901f44a10624d933051650248855b2
parentd8853429eb13f1b244cc8c921fb845f7de8dee04 (diff)
parenta8192cd76044bb5f82e7ab1d761e34fc21e15432 (diff)
downloadpodman-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.go2
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
}