Skip to content

Commit d627337

Browse files
committed
refactor(vmm): inline swtpm manifest check
1 parent d7e6151 commit d627337

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dstack/vmm/src/app/qemu.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ impl PreparedQemuLaunch {
234234
} else {
235235
None
236236
};
237-
let attach_swtpm = vm.manifest.swtpm;
238-
let (swtpm_socket, swtpm_path) = if attach_swtpm {
237+
let (swtpm_socket, swtpm_path) = if vm.manifest.swtpm {
239238
let swtpm_path = which::which("swtpm")
240239
.context("tpm key provider requested but swtpm is not installed")?;
241240
let state_dir = workdir.swtpm_state_dir();

0 commit comments

Comments
 (0)