Skip to content

Commit

Permalink
cgroups: manager's Set() now takes Resources as its parameter
Browse files Browse the repository at this point in the history
Pior our bump to runc 1.0.1 the manager's Set() would take a Config as
its parameter.  Now it takes the Resources directly.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
  • Loading branch information
fidencio committed Jul 26, 2021
1 parent c0f801c commit 116c29c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/runtime/virtcontainers/pkg/cgroups/manager.go
Expand Up @@ -268,9 +268,7 @@ func (m *Manager) Apply() error {

m.Lock()
defer m.Unlock()
return m.mgr.Set(&configs.Config{
Cgroups: cgroups,
})
return m.mgr.Set(cgroups.Resources)
}

func (m *Manager) GetCgroups() (*configs.Cgroup, error) {
Expand Down

0 comments on commit 116c29c

Please sign in to comment.