Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/output.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/lib/output.py')
-rw-r--r--archinstall/lib/output.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/output.py b/archinstall/lib/output.py
index 29b73bc4..e2b38ce6 100644
--- a/archinstall/lib/output.py
+++ b/archinstall/lib/output.py
@@ -11,7 +11,9 @@ class FormattedOutput:
@classmethod
def values(cls, o: Any) -> Dict[str, Any]:
- if hasattr(o, 'json'):
+ if hasattr(o, 'as_json'):
+ return o.as_json()
+ elif hasattr(o, 'json'):
return o.json()
else:
return o.__dict__