summaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-05-19 14:19:54 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-05-20 10:28:40 +0200
commit7d11dc47e11943717663100e986ffd8c5f6c577a (patch)
treec68985c26acc754a83384b76313895f9845ec1b8 /cli
parentd90ab82cec328004e743b2bfbb7c25b32eb299ea (diff)
list modes: use print_json
Follows commit b765ee50d31b1b629b7572c231d2cf2840a4146f (utils: add print_json)
Diffstat (limited to 'cli')
-rw-r--r--cli/objects/modes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/objects/modes.py b/cli/objects/modes.py
index 2abb091..d7ef8f2 100644
--- a/cli/objects/modes.py
+++ b/cli/objects/modes.py
@@ -15,7 +15,7 @@ class OgModes():
@staticmethod
def list_available_modes(rest):
r = rest.get('/mode')
- print(r.text)
+ print_json(r.text)
@staticmethod
def set_modes(rest, args):