Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/user_interaction/manage_users_conf.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2022-05-02 21:02:21 +1000
committerGitHub <noreply@github.com>2022-05-02 13:02:21 +0200
commit2d371571783cde70554e3e4e272beab2546ffff9 (patch)
tree24351623f0f917902701d325f13d1fd4b59d755b /archinstall/lib/user_interaction/manage_users_conf.py
parentf00717ff6fd1c72d61b6928444fbf26a3f5e0e64 (diff)
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 <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/user_interaction/manage_users_conf.py')
-rw-r--r--archinstall/lib/user_interaction/manage_users_conf.py4
1 files changed, 2 insertions, 2 deletions
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: