mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 12:44:39 +00:00
kata-sys-util: fix typo unknow
Change `unknow` to `unknown`. Fixes: #5296 Signed-off-by: Bin Liu <bin@hyper.sh>
This commit is contained in:
parent
949ffcc457
commit
ac04831223
@ -10,9 +10,9 @@ use kata_types::container::ContainerType;
|
|||||||
|
|
||||||
#[derive(thiserror::Error, Debug)]
|
#[derive(thiserror::Error, Debug)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
/// unknow container type
|
/// unknown container type
|
||||||
#[error("unknow container type {0}")]
|
#[error("unknown container type {0}")]
|
||||||
UnknowContainerType(String),
|
UnknownContainerType(String),
|
||||||
/// missing sandboxID
|
/// missing sandboxID
|
||||||
#[error("missing sandboxID")]
|
#[error("missing sandboxID")]
|
||||||
MissingSandboxID,
|
MissingSandboxID,
|
||||||
@ -56,7 +56,7 @@ pub fn get_contaier_type(spec: &oci::Spec) -> Result<ContainerType, Error> {
|
|||||||
"sandbox" => return Ok(ContainerType::PodSandbox),
|
"sandbox" => return Ok(ContainerType::PodSandbox),
|
||||||
"podsandbox" => return Ok(ContainerType::PodSandbox),
|
"podsandbox" => return Ok(ContainerType::PodSandbox),
|
||||||
"container" => return Ok(ContainerType::PodContainer),
|
"container" => return Ok(ContainerType::PodContainer),
|
||||||
_ => return Err(Error::UnknowContainerType(type_value.clone())),
|
_ => return Err(Error::UnknownContainerType(type_value.clone())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user