aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 3539d76..49b8558 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -230,13 +230,13 @@ fn run() -> Result<ExitCode> {
let systemctl = settings
.systemctl
.unwrap_or_else(|| PathBuf::from("systemctl"));
- let _lock = store.lock()?;
+ let lock = store.lock()?;
match command {
"plan" | "apply" => {
let submission = Submission::load(path.as_deref().unwrap())?;
let planned = plan::plan(&schema, &store, &submission)?;
let plan = if command == "apply" {
- planned.apply(&store, &schema_bytes, &systemctl)?
+ planned.apply(&store, &schema_bytes, &systemctl, lock)?
} else {
planned.plan
};