summaryrefslogtreecommitdiffstats
path: root/cli/objects/scopes.py
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-03-18 14:19:51 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-03-18 15:40:35 +0100
commit565e798ef9622486e9a11382085caf1e9c465241 (patch)
tree0e03fa4f0323cc4921c057a4ca947b7d6e997ebe /cli/objects/scopes.py
parentc80f27c98ca1748ca08cb00bd57eb4c3baba79a5 (diff)
Print json instead of python dict in responses
r.json() decodes the responses json and passes it to json.loads() which will convert the content into a python dictionary. Print the literal JSON text so that output can be further manipulated by other tools like jq.
Diffstat (limited to 'cli/objects/scopes.py')
-rw-r--r--cli/objects/scopes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/objects/scopes.py b/cli/objects/scopes.py
index 7f4cd7d..975b82f 100644
--- a/cli/objects/scopes.py
+++ b/cli/objects/scopes.py
@@ -11,4 +11,4 @@ class OgScope():
@staticmethod
def list_scopes(rest):
r = rest.get('/scopes')
- print(r.json())
+ print(r.text)