summaryrefslogtreecommitdiffstats
path: root/cli/objects/images.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2022-05-17 11:24:49 +0200
committerJose M. Guisado <jguisado@soleta.eu>2022-05-17 11:24:49 +0200
commitb765ee50d31b1b629b7572c231d2cf2840a4146f (patch)
tree33d9b0826450d1f05fa78f1dce5041ee38bf2676 /cli/objects/images.py
parentd8efd3321c759440c1f9f66b55b6b2c8b1edb67a (diff)
utils: add print_json
Adds a pretty printing function for JSON data. Replaces print for print_json in corresponding cli objects. Follows commit 828d6c0ce7d4a6b4bcd95e97155460fd59856bdd ("list scopes: pretty print scope tree")
Diffstat (limited to 'cli/objects/images.py')
-rw-r--r--cli/objects/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/objects/images.py b/cli/objects/images.py
index c696d53..8299923 100644
--- a/cli/objects/images.py
+++ b/cli/objects/images.py
@@ -15,7 +15,7 @@ class OgImage():
@staticmethod
def list_images(rest):
r = rest.get('/images')
- print(r.text)
+ print_json(r.text)
@staticmethod
def restore_image(rest, args):