cortexapps-cli 0.26.5__tar.gz → 0.26.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cortexapps_cli-0.26.5 → cortexapps_cli-0.26.7}/PKG-INFO +2 -1
- {cortexapps_cli-0.26.5 → cortexapps_cli-0.26.7}/cortexapps_cli/cortex.py +11 -4
- {cortexapps_cli-0.26.5 → cortexapps_cli-0.26.7}/pyproject.toml +1 -1
- {cortexapps_cli-0.26.5 → cortexapps_cli-0.26.7}/LICENSE +0 -0
- {cortexapps_cli-0.26.5 → cortexapps_cli-0.26.7}/README.rst +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cortexapps-cli
|
|
3
|
-
Version: 0.26.
|
|
3
|
+
Version: 0.26.7
|
|
4
4
|
Summary: Command Line Interface for cortexapps
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Cortex Apps
|
|
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
15
|
Requires-Dist: pyyaml (>=6.0.1,<7)
|
|
15
16
|
Requires-Dist: requests (>=2.32.3,<3)
|
|
16
17
|
Requires-Dist: urllib3 (>=2.2.2)
|
|
@@ -423,13 +423,13 @@ def add_argument_page(subparser, help_text='Page number to return, 0 indexed'):
|
|
|
423
423
|
metavar=''
|
|
424
424
|
)
|
|
425
425
|
|
|
426
|
-
def add_argument_page_size(subparser, help_text='Page size for results
|
|
426
|
+
def add_argument_page_size(subparser, help_text='Page size for results'):
|
|
427
427
|
subparser.add_argument(
|
|
428
428
|
'-z',
|
|
429
429
|
'--pageSize',
|
|
430
430
|
help=help_text,
|
|
431
431
|
required=False,
|
|
432
|
-
default=
|
|
432
|
+
default=argparse.SUPPRESS,
|
|
433
433
|
metavar=''
|
|
434
434
|
)
|
|
435
435
|
|
|
@@ -607,7 +607,8 @@ def exit(r, method, expected_rc=200, err=None):
|
|
|
607
607
|
debug_json(r, method)
|
|
608
608
|
if err:
|
|
609
609
|
print(f'{method} {r.url} => {r.status_code} {r.reason}')
|
|
610
|
-
|
|
610
|
+
if err != None:
|
|
611
|
+
print(err)
|
|
611
612
|
|
|
612
613
|
if not config.get('is_importing', False) or r.status_code != 409 or r.status_code != 400:
|
|
613
614
|
sys.exit(r.status_code)
|
|
@@ -643,12 +644,17 @@ def get(url, headers={}):
|
|
|
643
644
|
api_key(headers)
|
|
644
645
|
|
|
645
646
|
err = None
|
|
647
|
+
details = None
|
|
646
648
|
try:
|
|
647
649
|
r = requests.get(config['url'] + url, headers=headers)
|
|
648
650
|
r.raise_for_status()
|
|
649
651
|
except requests.exceptions.RequestException as e:
|
|
650
652
|
err = e.response.text
|
|
651
|
-
|
|
653
|
+
if err != "":
|
|
654
|
+
if details in e.response.json():
|
|
655
|
+
details = e.response.json()['details']
|
|
656
|
+
exit(r, 'GET', err = details)
|
|
657
|
+
|
|
652
658
|
|
|
653
659
|
def put(url, headers={}, payload=""):
|
|
654
660
|
api_key(headers)
|
|
@@ -992,6 +998,7 @@ def subparser_catalog_create_or_update(subparser):
|
|
|
992
998
|
sp.add_argument(
|
|
993
999
|
'-d',
|
|
994
1000
|
'--dry-run',
|
|
1001
|
+
dest="dryRun",
|
|
995
1002
|
help='When true, this endpoint only validates the descriptor contents and returns any errors or warnings.',
|
|
996
1003
|
action='store_true',
|
|
997
1004
|
default='false'
|
|
File without changes
|
|
File without changes
|