summaryrefslogtreecommitdiff
path: root/cli/app/commands
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-01-10 00:11:17 +0100
committerJules Laplace <julescarbon@gmail.com>2020-01-10 00:11:17 +0100
commit347838598689a2111c5687ee6bc495519f190fea (patch)
tree3ad247cf8028879a6ac6b1f4975d4d138390319e /cli/app/commands
parentc3ef63d9417dbc0b453e8799b96d07bc9ee47ef4 (diff)
fix
Diffstat (limited to 'cli/app/commands')
-rw-r--r--cli/app/commands/cortex/upload.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/app/commands/cortex/upload.py b/cli/app/commands/cortex/upload.py
index c1b0a46..c176eb9 100644
--- a/cli/app/commands/cortex/upload.py
+++ b/cli/app/commands/cortex/upload.py
@@ -1,6 +1,7 @@
import click
+import json
-from app.utils.cortex_utils import upload_to_cortex
+from app.utils.cortex_utils import upload_file_to_cortex
@click.command('')
@click.option('-i', '--input', 'opt_fp_in', required=True,
@@ -12,4 +13,5 @@ def cli(ctx, opt_fp_in, opt_folder_id):
"""
Test uploading a file to Cortex
"""
- upload_to_cortex(opt_folder_id, opt_fp_in)
+ data = upload_file_to_cortex(opt_folder_id, opt_fp_in)
+ print(json.dumps(data, indent=2))