mirror of
https://gitlab.com/fabinfra/fabaccess/sute.git
synced 2025-03-12 14:41:52 +01:00
UID not UUID
This commit is contained in:
parent
182c8a9736
commit
6913602595
@ -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 <uuid>")
|
||||
error!(self.log, "minfo <uid>")
|
||||
}
|
||||
}
|
||||
Some((s, m)) => info!(self.log, "Got Command {} with params {:?}", s, m),
|
||||
|
@ -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)))
|
||||
,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user