mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-05 06:38:51 +01:00
Name function after command: list_local_users
This commit is contained in:
parent
3e79d15495
commit
50430cf4ab
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ impl Admin {
|
||||||
|
|
||||||
match event {
|
match event {
|
||||||
AdminCommand::ListLocalUsers => {
|
AdminCommand::ListLocalUsers => {
|
||||||
match guard.users.get_local_users() {
|
match guard.users.list_local_users() {
|
||||||
Ok(users) => {
|
Ok(users) => {
|
||||||
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
|
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
|
||||||
msg += &users.join("\n");
|
msg += &users.join("\n");
|
||||||
|
|
|
@ -127,7 +127,7 @@ impl Users {
|
||||||
///
|
///
|
||||||
/// A user account is considered `local` if the length of it's password is greater then zero.
|
/// A user account is considered `local` if the length of it's password is greater then zero.
|
||||||
#[tracing::instrument(skip(self))]
|
#[tracing::instrument(skip(self))]
|
||||||
pub fn get_local_users(&self) -> Result<Vec<String>> {
|
pub fn list_local_users(&self) -> Result<Vec<String>> {
|
||||||
let users: Vec<String> = self
|
let users: Vec<String> = self
|
||||||
.userid_password
|
.userid_password
|
||||||
.iter()
|
.iter()
|
||||||
|
|
Loading…
Reference in a new issue