Merge pull request #5807 from openSUSE/pids-ctr-path

Fix invalid container path comparison for pid cgroup
This commit is contained in:
OpenShift Merge Robot 2020-04-14 15:23:03 +02:00 committed by GitHub
commit 26c15358d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}