Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 20:27:40 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-10-18 20:27:40 +0200
commit1bd6a19dc46d693ab55d25a0275db8fcf83e20d9 (patch)
tree59836534848c976e3f5ff9b56cadae245f7d2311 /archinstall
parentfa4be63e483a0a692f26103b45ad6abe73879f37 (diff)
Made Profile() json-dumpable
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/profiles.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 47e6dd36..e018f753 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -61,6 +61,9 @@ class Profile():
self._cache = None
self.args = args
+ def __dump__(self, *args, **kwargs):
+ return {'path' : self._path}
+
def __repr__(self, *args, **kwargs):
return f'Profile({self._path} <"{self.path}">)'