audit fix and code stability improvement
This commit is contained in:
@@ -108,7 +108,6 @@ impl PreflightAuditor for DellXps9380Sal {
|
||||
}
|
||||
});
|
||||
|
||||
// Tool availability check
|
||||
let tool_check = self.fact_sheet.paths.tools.contains_key("dell_fan_ctrl");
|
||||
steps.push(AuditStep {
|
||||
description: "Dell Fan Control Tool".to_string(),
|
||||
@@ -125,6 +124,7 @@ impl EnvironmentGuard for DellXps9380Sal {
|
||||
let mut suppressed = self.suppressed_services.lock().unwrap();
|
||||
for s in services {
|
||||
if Command::new("systemctl").args(["is-active", "--quiet", s]).status()?.success() {
|
||||
debug!("Suppressing service: {}", s);
|
||||
Command::new("systemctl").args(["stop", s]).status()?;
|
||||
suppressed.push(s.to_string());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user