summaryrefslogtreecommitdiffstats
path: root/cli/objects/scopes.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli/objects/scopes.py')
-rw-r--r--cli/objects/scopes.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/objects/scopes.py b/cli/objects/scopes.py
index 3517e43..5383932 100644
--- a/cli/objects/scopes.py
+++ b/cli/objects/scopes.py
@@ -5,12 +5,13 @@
# Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
-import json
+import argparse
+
+from cli.utils import print_json
class OgScope():
@staticmethod
def list_scopes(rest):
r = rest.get('/scopes')
- payload = json.loads(r.text)
- print(json.dumps(payload, sort_keys=True, indent=2))
+ print_json(r.text)