Skip to content

Commit 6ed9f82

Browse files
committed
fix: properly default statev1 version to 1.
1 parent 5119a7b commit 6ed9f82

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

crates/system-manager-engine/src/activate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ pub fn activate(store_path: &StorePath, ephemeral: bool) -> Result<()> {
160160
Ok(services) => StateV1 {
161161
file_tree: etc_tree,
162162
services,
163-
version: Default::default(),
163+
version: 1,
164164
},
165165
Err(ActivationError::WithPartialResult { result, source }) => {
166166
log::error!("Error during activation: {source:?}");
167167
StateV1 {
168168
file_tree: etc_tree,
169169
services: result,
170-
version: Default::default(),
170+
version: 1,
171171
}
172172
}
173173
};
@@ -215,14 +215,14 @@ pub fn prepopulate(store_path: &StorePath, ephemeral: bool) -> Result<()> {
215215
Ok(services) => StateV1 {
216216
file_tree: etc_tree,
217217
services,
218-
version: Default::default(),
218+
version: 1,
219219
},
220220
Err(ActivationError::WithPartialResult { result, source }) => {
221221
log::error!("Error during activation: {source:?}");
222222
StateV1 {
223223
file_tree: etc_tree,
224224
services: result,
225-
version: Default::default(),
225+
version: 1,
226226
}
227227
}
228228
}

crates/system-manager-engine/src/activate/etc_files/etc_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl From<StateV0> for StateV1 {
2222
StateV1 {
2323
file_tree,
2424
services,
25-
version: Default::default(),
25+
version: 1,
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)