Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/general.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/general.py')
-rw-r--r--archinstall/lib/general.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py
index dc94b063..97ad1565 100644
--- a/archinstall/lib/general.py
+++ b/archinstall/lib/general.py
@@ -45,7 +45,10 @@ class JSON_Encoder:
else:
val = JSON_Encoder._encode(val)
del(obj[key])
- obj[JSON_Encoder._encode(key)] = val
+ if type(key) == str and key[0] == '!':
+ obj[JSON_Encoder._encode(key)] = '******'
+ else:
+ obj[JSON_Encoder._encode(key)] = val
return obj
elif hasattr(obj, 'json'):
return obj.json()