fn booted_json(status: &StatusJson) -> Result<DeploymentJson> {
    let booted = status
        .clone()
        .deployments
        .into_iter()
        .find(|d| d.booted)
        .ok_or_else(|| anyhow!("no booted deployment found"))?;

    ensure!(!booted.base_revision().is_empty(), "empty base revision");
    ensure!(!booted.version.is_empty(), "empty version");
    ensure!(!booted.base_metadata.basearch.is_empty(), "empty basearch");
    Ok(booted)
}
/// Return JSON object for booted deployment.
Return JSON object for booted deployment.
Return JSON object for booted deployment .
fn booted_json(status: &StatusJson) -> Result<DeploymentJson> {
    let booted = status
        .clone()
        .deployments
        .into_iter()
        .find(|d| d.booted)
        .ok_or_else(|| anyhow!("no booted deployment found"))?;
    ensure!(!booted.base_revision().is_empty(), "empty base revision");
    ensure!(!booted.version.is_empty(), "empty version");
    ensure!(!booted.base_metadata.basearch.is_empty(), "empty basearch");
    Ok(booted)
}
fn booted_json ( status : & StatusJson ) -> Result < DeploymentJson > { let booted = status . clone ( ) . deployments . into_iter ( ) . find ( | d | d . booted ) . ok_or_else ( | | anyhow ! ( " " ) ) ? ; ensure ! ( booted base_revision ( ) is_empty ( ) " " ) ; ensure ! ( booted version is_empty ( ) " " ) ; ensure ! ( booted base_metadata basearch is_empty ( ) " " ) ; Ok ( booted ) }
Return JSON object for booted deployment.
Return JSON object for booted deployment .
status
&StatusJson