Skip to content

Commit

Permalink
Fix bug where Clevis and keyring implementations are enabled together
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaublitz committed Oct 31, 2023
1 parent b449506 commit 254add9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/strat_engine/backstore/crypt/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ pub fn activate(
unlock_method: UnlockMethod,
name: &DmName,
) -> StratisResult<()> {
if let Some(kd) = key_desc {
if let (Some(kd), UnlockMethod::Keyring) = (key_desc, unlock_method) {
let key_description_missing = keys::search_key_persistent(kd)
.map_err(|_| {
StratisError::Msg(format!(
Expand Down

0 comments on commit 254add9

Please sign in to comment.