cgroups: manager's Set() now takes Resources as its parameter

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>
This commit is contained in:
Fabiano Fidêncio 2021-07-26 08:20:57 +02:00
parent c0f801c0c4
commit 116c29c897

View File

@ -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) {