Fix compilation error in agent service status check
All checks were successful
Build and Release / build-and-release (push) Successful in 1m31s
All checks were successful
Build and Release / build-and-release (push) Successful in 1m31s
This commit is contained in:
parent
69892a2d84
commit
ac5d2d4db5
@ -478,7 +478,8 @@ impl Agent {
|
||||
.output()
|
||||
.await?;
|
||||
|
||||
let is_failed = String::from_utf8_lossy(&result.stdout).trim();
|
||||
let output_string = String::from_utf8_lossy(&result.stdout);
|
||||
let is_failed = output_string.trim();
|
||||
if is_failed == "failed" {
|
||||
return Err(anyhow::anyhow!("cm-rebuild service failed"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user