From c50f853574bd62d7694f09d377aaf91f3e3338e6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 1 Jun 2021 02:47:07 +0100 Subject: [PATCH] otter cli: Do not SelectAccount when we are mgmtchannel-proxy Signed-off-by: Ian Jackson --- src/bin/otter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/otter.rs b/src/bin/otter.rs index 8a98a349..f4e5fb47 100644 --- a/src/bin/otter.rs +++ b/src/bin/otter.rs @@ -1927,14 +1927,14 @@ mod mgmtchannel_proxy { #[throws(AE)] fn call(_sc: &Subcommand, ma: MainOpts, args: Vec) { let args = parse_args::(args, &subargs, &ok_id, None); - let mut conn = connect(&ma)?; + let mut chan = connect_chan(&ma)?; if let Some(ref restrict) = args.restrict { - conn.cmd(&MC::SetRestrictedSshScope { key: restrict.clone() }) + chan.cmd(&MC::SetRestrictedSshScope { key: restrict.clone() }) .context("specify authorisation")?; } - let Conn { chan: MgmtChannel { read, write, .. }, .. } = conn; + let MgmtChannel { read, write } = chan; let mut read = read.into_stream()?; let mut write = write.into_stream()?; -- 2.30.2