fix: cargo fmt
All checks were successful
Run Check Script / check (pull_request) Successful in 1m0s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m0s
This commit is contained in:
parent
65cc9befeb
commit
a9fe4ab267
@ -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]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
|
@ -123,8 +123,14 @@ impl CephVerifyClusterHealthInterpret {
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
if health.contains("HEALTH_OK") {
|
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 {
|
} else {
|
||||||
Err(InterpretError::new(format!("Ceph cluster unhealthy {}", health)))}
|
Err(InterpretError::new(format!(
|
||||||
|
"Ceph cluster unhealthy {}",
|
||||||
|
health
|
||||||
|
)))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user