From 6913602595d96e8eecc2a97d0ded560bbc4cec10 Mon Sep 17 00:00:00 2001 From: Gregor Reitzenstein Date: Wed, 16 Dec 2020 11:59:40 +0100 Subject: [PATCH] UID not UUID --- src/app.rs | 8 ++++---- src/commands.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app.rs b/src/app.rs index 083d6ba..265468b 100644 --- a/src/app.rs +++ b/src/app.rs @@ -96,14 +96,14 @@ impl<'a, S: Unpin> Sute<'a, S> { } } Some(("minfo", m)) => { - if let Some(uuid) = m.value_of("uuid") { - let uuid = uuid.to_string(); + if let Some(uid) = m.value_of("uid") { + let uid = uid.to_string(); if let Some(mut api) = self.session.as_ref().map(|s| s.bootstrap.clone()) { let log = self.log.clone(); let machines = api.machines(); let machine = machines.then(|mut machines| { - machines.get_machine(uuid) + machines.get_machine(uid) }); let f = machine.then(move |res| { res.as_ref().unwrap().get_info().map(move |info| { @@ -116,7 +116,7 @@ impl<'a, S: Unpin> Sute<'a, S> { } } } else { - error!(self.log, "minfo ") + error!(self.log, "minfo ") } } Some((s, m)) => info!(self.log, "Got Command {} with params {:?}", s, m), diff --git a/src/commands.rs b/src/commands.rs index f061b53..ce8d3fc 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -30,7 +30,7 @@ impl<'help> CommandParser<'help> { .arg(Arg::new("pass") .takes_value(true))) .subcommand(App::new("minfo") - .arg(Arg::new("uuid") + .arg(Arg::new("uid") .takes_value(true))) , }