From 2d371571783cde70554e3e4e272beab2546ffff9 Mon Sep 17 00:00:00 2001 From: Daniel Girtler Date: Mon, 2 May 2022 21:02:21 +1000 Subject: Fix 1091 and other minor fixes (#1103) * Fix 1091 * Update * flake8 * Only display btrfs options if there is a filesystem * Fix 1118 Co-authored-by: Daniel Girtler --- archinstall/lib/user_interaction/manage_users_conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archinstall/lib/user_interaction/manage_users_conf.py') diff --git a/archinstall/lib/user_interaction/manage_users_conf.py b/archinstall/lib/user_interaction/manage_users_conf.py index a6ff3111..d69ccce9 100644 --- a/archinstall/lib/user_interaction/manage_users_conf.py +++ b/archinstall/lib/user_interaction/manage_users_conf.py @@ -36,7 +36,7 @@ class UserList(ListManager): ] super().__init__(prompt, lusers, self.actions, self.actions[0]) - def reformat(self, data: Any) -> List[Any]: + def reformat(self, data: List) -> Dict: def format_element(elem :str): # secret gives away the length of the password if data[elem].get('!password'): @@ -49,7 +49,7 @@ class UserList(ListManager): super_user = ' ' return f"{elem:16}: password {pwd:16} {super_user}" - return list(map(lambda x: format_element(x), data)) + return {format_element(e): e for e in data} def action_list(self): if self.target: -- cgit v1.2.3-54-g00ecf