Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
A new method was added to the cgroup interface when opencontainers#2177 was merged.

After opencontainers#2177 got merged, opencontainers#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 <[email protected]>
  • Loading branch information
AkihiroSuda authored and adrianreber committed Feb 10, 2020
1 parent 0c82c2e commit 52642fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libcontainer/cgroups/fs2/fs2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 52642fb

Please sign in to comment.