Sort VM groups
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-11-02 18:40:06 +01:00
parent 2b58ce4d5e
commit 2fadf53dea
2 changed files with 6 additions and 2 deletions

View File

@ -117,7 +117,9 @@ impl LibVirtClient {
out.insert(g);
}
}
Ok(out.into_iter().collect())
let mut out: Vec<_> = out.into_iter().collect();
out.sort();
Ok(out)
}
/// Update a network configuration

View File

@ -10,7 +10,9 @@ use crate::utils::files_utils::convert_size_unit_to_mb;
use lazy_regex::regex;
use num::Integer;
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq, Hash)]
#[derive(
Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq, Hash, Ord, PartialOrd,
)]
pub struct VMGroupId(pub String);
#[derive(serde::Serialize, serde::Deserialize)]