wip: cargo fmt
All checks were successful
Run Check Script / check (pull_request) Successful in 1m16s
All checks were successful
Run Check Script / check (pull_request) Successful in 1m16s
This commit is contained in:
parent
44bf21718c
commit
9ba939bde1
@ -25,7 +25,9 @@ struct OpnSenseTopology {
|
|||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl Topology for OpnSenseTopology {
|
impl Topology for OpnSenseTopology {
|
||||||
async fn ensure_ready(&self) -> Result<PreparationOutcome, PreparationError> {
|
async fn ensure_ready(&self) -> Result<PreparationOutcome, PreparationError> {
|
||||||
Ok(PreparationOutcome::Success{ details: "Success".to_string() })
|
Ok(PreparationOutcome::Success {
|
||||||
|
details: "Success".to_string(),
|
||||||
|
})
|
||||||
}
|
}
|
||||||
fn name(&self) -> &str {
|
fn name(&self) -> &str {
|
||||||
"OpnsenseTopology"
|
"OpnsenseTopology"
|
||||||
|
|||||||
@ -25,7 +25,10 @@ impl NodeExporter for OPNSenseFirewall {
|
|||||||
})?;
|
})?;
|
||||||
}
|
}
|
||||||
|
|
||||||
config.node_exporter().enable(true).map_err(|e|ExecutorError::UnexpectedError(e.to_string()))?;
|
config
|
||||||
|
.node_exporter()
|
||||||
|
.enable(true)
|
||||||
|
.map_err(|e| ExecutorError::UnexpectedError(e.to_string()))?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
async fn commit_config(&self) -> Result<(), ExecutorError> {
|
async fn commit_config(&self) -> Result<(), ExecutorError> {
|
||||||
|
|||||||
@ -14,6 +14,7 @@ use opnsense_config_xml::OPNsense;
|
|||||||
use russh::client;
|
use russh::client;
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
use sha2::Digest;
|
use sha2::Digest;
|
||||||
|
use tokio::time::{sleep, Duration};
|
||||||
|
|
||||||
use super::{ConfigManager, OPNsenseShell};
|
use super::{ConfigManager, OPNsenseShell};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user