mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-04 16:28:53 +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 {
|
||||
AdminCommand::ListLocalUsers => {
|
||||
match guard.users.get_local_users() {
|
||||
match guard.users.list_local_users() {
|
||||
Ok(users) => {
|
||||
let mut msg: String = format!("Found {} local user account(s):\n", users.len());
|
||||
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.
|
||||
#[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
|
||||
.userid_password
|
||||
.iter()
|
||||
|
|
Loading…
Reference in a new issue