From 5c20ea1472dbeeebdb1bcef31a09888890a25b3a Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Tue, 14 Jan 2020 11:13:25 +0900 Subject: [PATCH] fix merging #2177 and #2169 A new method was added to the cgroup interface when #2177 was merged. After #2177 got merged, #2169 was merged without rebase (sorry!) and compilation was failing: libcontainer/cgroups/fs2/fs2.go:208:22: container.Cgroup undefined (type *configs.Config has no field or method Cgroup) Signed-off-by: Akihiro Suda --- libcontainer/cgroups/fs2/fs2.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcontainer/cgroups/fs2/fs2.go b/libcontainer/cgroups/fs2/fs2.go index 2d32f821..4bb7091a 100644 --- a/libcontainer/cgroups/fs2/fs2.go +++ b/libcontainer/cgroups/fs2/fs2.go @@ -205,5 +205,10 @@ func (m *manager) Set(container *configs.Config) error { if len(errs) > 0 && !m.rootless { return errors.Errorf("error while setting cgroup v2: %+v", errs) } + m.config = container.Cgroups return nil } + +func (m *manager) GetCgroups() (*configs.Cgroup, error) { + return m.config, nil +}