From 44abc17977165ceb6b7d84efe4b9c62c8fbb2ac1 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 14 Sep 2021 12:16:13 +0200 Subject: libpod: honor --cgroups=split also with pods Honor --cgroups=split also when the container is running in a pod. Signed-off-by: Giuseppe Scrivano --- libpod/container_internal_linux.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'libpod') diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index eabe8efd2..34f84203b 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -2495,9 +2495,6 @@ func (c *Container) getOCICgroupPath() (string, error) { } return c.config.CgroupParent, nil case c.config.CgroupsMode == cgroupSplit: - if c.config.CgroupParent != "" { - return c.config.CgroupParent, nil - } selfCgroup, err := utils.GetOwnCgroup() if err != nil { return "", err -- cgit v1.2.3-54-g00ecf