list modes: use print_json

Follows commit b765ee50d3
(utils: add print_json)
master
Jose M. Guisado 2022-05-19 14:19:54 +02:00
parent d90ab82cec
commit 7d11dc47e1
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class OgModes():
@staticmethod @staticmethod
def list_available_modes(rest): def list_available_modes(rest):
r = rest.get('/mode') r = rest.get('/mode')
print(r.text) print_json(r.text)
@staticmethod @staticmethod
def set_modes(rest, args): def set_modes(rest, args):