fix: cargo fmt
All checks were successful
Run Check Script / check (pull_request) Successful in 1m0s

This commit is contained in:
Willem 2025-08-25 13:33:36 -04:00
parent 65cc9befeb
commit a9fe4ab267
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,8 @@
use harmony::{inventory::Inventory, modules::storage::ceph::ceph_validate_health_score::CephVerifyClusterHealth, topology::K8sAnywhereTopology};
use harmony::{
inventory::Inventory,
modules::storage::ceph::ceph_validate_health_score::CephVerifyClusterHealth,
topology::K8sAnywhereTopology,
};
#[tokio::main]
async fn main() {

View File

@ -49,7 +49,7 @@ impl<T: Topology + K8sclient> Interpret<T> for CephVerifyClusterHealthInterpret
}
fn get_name(&self) -> InterpretName {
InterpretName::CephClusterHealth
InterpretName::CephClusterHealth
}
fn get_version(&self) -> Version {
@ -123,8 +123,14 @@ impl CephVerifyClusterHealthInterpret {
.await?;
if health.contains("HEALTH_OK") {
return Ok(Outcome::success("Ceph Cluster in healthy state".to_string()))
return Ok(Outcome::success(
"Ceph Cluster in healthy state".to_string(),
));
} else {
Err(InterpretError::new(format!("Ceph cluster unhealthy {}", health)))}
Err(InterpretError::new(format!(
"Ceph cluster unhealthy {}",
health
)))
}
}
}