1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-06 07:36:17 +02:00

fix inaccessiblity of private field. (#338)

This commit is contained in:
utam0k 2021-09-27 11:32:18 +09:00 committed by GitHub
parent 3879829a00
commit bc5b6fd0cc
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,8 +180,8 @@ impl<'a> ContainerBuilderImpl<'a> {
}
fn cleanup_container(&self) -> Result<()> {
let linux = self.spec.linux.as_ref().context("no linux in spec")?;
let cgroups_path = utils::get_cgroup_path(&linux.cgroups_path, &self.container_id);
let linux = self.spec.linux().as_ref().context("no linux in spec")?;
let cgroups_path = utils::get_cgroup_path(linux.cgroups_path(), &self.container_id);
let cmanager = cgroups::common::create_cgroup_manager(&cgroups_path, self.use_systemd)?;
let mut errors = Vec::new();