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:
parent
3879829a00
commit
bc5b6fd0cc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue