aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-09-07 15:30:01 -0700
committerDaniel Mueller <deso@posteo.net>2020-09-07 15:30:01 -0700
commitbeaf6ee2cba27343194fc555503870c3857f3245 (patch)
treee52e914d1896fc0bdf35d3a5a7634beba4484812
parent5bc550418d18c1321b37b8d1945ba7f162bbea92 (diff)
downloadnitrocli-beaf6ee2cba27343194fc555503870c3857f3245.tar.gz
nitrocli-beaf6ee2cba27343194fc555503870c3857f3245.tar.bz2
fixup! Refactor connection handling
-rw-r--r--src/commands.rs2
1 files changed, 2 insertions, 0 deletions
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)?;