From 38f497a70111ba6495bd953a600362088e8459d7 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Fri, 3 Mar 2017 16:38:46 -0800 Subject: [PATCH] Fix cgroup parent We were using a variable before it was set. Signed-off-by: Mrunal Patel --- server/sandbox_run.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sandbox_run.go b/server/sandbox_run.go index 7cff2f3e..99923e52 100644 --- a/server/sandbox_run.go +++ b/server/sandbox_run.go @@ -264,11 +264,11 @@ func (s *Server) RunPodSandbox(ctx context.Context, req *pb.RunPodSandboxRequest cgroupParent := req.GetConfig().GetLinux().CgroupParent if cgroupParent != "" { if s.config.CgroupManager == "systemd" { - cgPath := sb.cgroupParent + ":" + "ocid" + ":" + id + cgPath := cgroupParent + ":" + "ocid" + ":" + id g.SetLinuxCgroupsPath(cgPath) } else { - g.SetLinuxCgroupsPath(sb.cgroupParent + "/" + id) + g.SetLinuxCgroupsPath(cgroupParent + "/" + id) } sb.cgroupParent = cgroupParent