mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 06:52:13 +00:00
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:
parent
c0f801c0c4
commit
116c29c897
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user