From beaf6ee2cba27343194fc555503870c3857f3245 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Mon, 7 Sep 2020 15:30:01 -0700 Subject: fixup! Refactor connection handling --- src/commands.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.rs b/src/commands.rs index 3a245e5..455ff4d 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -134,6 +134,8 @@ where if model != args::DeviceModel::Storage { anyhow::bail!("This command is only available on the Nitrokey Storage"); } + } else { + ctx.config.model = Some(args::DeviceModel::Storage); } let device = connect(&mut manager, &ctx.config)?; -- cgit v1.2.3