ctm-python-client 2.4.1__py3-none-any.whl → 2.4.3__py3-none-any.whl
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.
- aapi/bases.py +2 -2
- ctm_python_client/__init__.py +1 -1
- ctm_python_client/core/workflow.py +12 -6
- {ctm_python_client-2.4.1.dist-info → ctm_python_client-2.4.3.dist-info}/METADATA +1 -1
- {ctm_python_client-2.4.1.dist-info → ctm_python_client-2.4.3.dist-info}/RECORD +8 -8
- {ctm_python_client-2.4.1.dist-info → ctm_python_client-2.4.3.dist-info}/LICENSE +0 -0
- {ctm_python_client-2.4.1.dist-info → ctm_python_client-2.4.3.dist-info}/WHEEL +0 -0
- {ctm_python_client-2.4.1.dist-info → ctm_python_client-2.4.3.dist-info}/top_level.txt +0 -0
aapi/bases.py
CHANGED
|
@@ -85,14 +85,14 @@ class AAPIObject:
|
|
|
85
85
|
else:
|
|
86
86
|
on_demand_workflow.add(self, inpath=inpath)
|
|
87
87
|
|
|
88
|
-
on_demand_workflow.run_on_demand(
|
|
88
|
+
return on_demand_workflow.run_on_demand(
|
|
89
89
|
skip_login=skip_login,
|
|
90
90
|
file_path=file_path,
|
|
91
91
|
delete_afterwards=delete_afterwards,
|
|
92
92
|
open_in_browser=open_in_browser
|
|
93
93
|
)
|
|
94
94
|
except Exception as e:
|
|
95
|
-
if e
|
|
95
|
+
if hasattr(e, 'body'):
|
|
96
96
|
errors = [err.get('message', '') + ' ' + err.get('item', '')
|
|
97
97
|
for err in json.loads(e.body)['errors']]
|
|
98
98
|
raise RuntimeError(f"AAPI request failed: {', '.join(errors)}")
|
ctm_python_client/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = '2.4.
|
|
1
|
+
__version__ = '2.4.3'
|
|
2
2
|
__author__ = 'BMC Software'
|
|
@@ -412,9 +412,12 @@ class Workflow(BaseWorkflow):
|
|
|
412
412
|
run_.open_in_browser()
|
|
413
413
|
return run_
|
|
414
414
|
except Exception as e:
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
415
|
+
if hasattr(e, 'body'):
|
|
416
|
+
errors = [err.get('message', '') + ' ' + err.get('item', '')
|
|
417
|
+
for err in json.loads(e.body)['errors']]
|
|
418
|
+
raise RuntimeError(f"AAPI request failed: {', '.join(errors)}")
|
|
419
|
+
else:
|
|
420
|
+
raise e
|
|
418
421
|
finally:
|
|
419
422
|
if delete_afterwards:
|
|
420
423
|
fpath.unlink()
|
|
@@ -438,9 +441,12 @@ class Workflow(BaseWorkflow):
|
|
|
438
441
|
run_.open_in_browser()
|
|
439
442
|
return run_
|
|
440
443
|
except Exception as e:
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
+
if hasattr(e, 'body'):
|
|
445
|
+
errors = [err.get('message', '') + ' ' + err.get('item', '')
|
|
446
|
+
for err in json.loads(e.body)['errors']]
|
|
447
|
+
raise RuntimeError(f"AAPI request failed: {', '.join(errors)}")
|
|
448
|
+
else:
|
|
449
|
+
raise e
|
|
444
450
|
finally:
|
|
445
451
|
if delete_afterwards:
|
|
446
452
|
fpath.unlink()
|
|
@@ -3,7 +3,7 @@ aapi/action.py,sha256=te1lr64tU7854Oy4lUjQgh1EIlZzO82ulA-NnfiK9ko,1622
|
|
|
3
3
|
aapi/addevents.py,sha256=maZH3TpP1C1usvM2qee4DNl1PUA6IpnAWUKki1WGUlg,793
|
|
4
4
|
aapi/ai.py,sha256=3mZu6I8PSbnr0v6AKxZ3-OA8RbdHlI55qCeaqlF3iXA,2094
|
|
5
5
|
aapi/basefolder.py,sha256=l6wHCwCr-RkJIaDQGzV22bbHk6DQWiNpKHKmOe0x-I4,14191
|
|
6
|
-
aapi/bases.py,sha256=
|
|
6
|
+
aapi/bases.py,sha256=i6PnuHXX_pEm315iqunn3Qk_GQ8A3AC9U132W2mUfTs,4183
|
|
7
7
|
aapi/businessfield.py,sha256=T11iWMIp8BtQCCrkR3glp0E7dKOLI00qO3lKT6_Ngdw,373
|
|
8
8
|
aapi/businessparameter.py,sha256=Ee8NBDM4TDA2wx7T2lsj1yaNRJ-Pt5FADPCwx8qa4JU,3372
|
|
9
9
|
aapi/calendar.py,sha256=C6mAQhypnSs2IG1CKRbjTekLdo87AHJ5GM_a3HofF3c,9322
|
|
@@ -728,18 +728,18 @@ clients/ctm_saas_client/models/workspace_folder.py,sha256=Uxn61e8LzGzceVV6TBofuy
|
|
|
728
728
|
clients/ctm_saas_client/models/workspace_folders.py,sha256=rpVIXVw8Fh_9W-mfuDEDClC0vYTStKQo_8zgGcGaZu8,3455
|
|
729
729
|
clients/ctm_saas_client/models/zoo_keeper.py,sha256=qYqn4P4CaKqLAKSxBoJvwxm1OGUcS8cmy9BW8Ul7maI,8790
|
|
730
730
|
clients/ctm_saas_client/models/zos_template_data.py,sha256=RF7S-oR4rmbwc_WJDebk2SLvkAku4uxd_a59Cq_DzVM,18096
|
|
731
|
-
ctm_python_client/__init__.py,sha256=
|
|
731
|
+
ctm_python_client/__init__.py,sha256=IGktm1mFnTkuQ2INXEoWSYDHLns5P8ZXB1lU0CvHbRg,49
|
|
732
732
|
ctm_python_client/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
733
733
|
ctm_python_client/core/comm.py,sha256=33NSUm-dI9jo7jwQft76KSxridmQsjuX-0eNbQSH5Fo,6726
|
|
734
734
|
ctm_python_client/core/credential.py,sha256=UDN1Q8IYf-ufiXUr-aHm1MDu9bVX8J0Hk8BhvlmYfKk,1009
|
|
735
735
|
ctm_python_client/core/monitoring.py,sha256=62fbSTEGFpHcBrXK8R8cWejq6DlrmdaNumXbOaDa3HY,12043
|
|
736
|
-
ctm_python_client/core/workflow.py,sha256=
|
|
736
|
+
ctm_python_client/core/workflow.py,sha256=wH6_QrSpBv1yUN0oQADky91ZlG8Iw1MLhQ7D3VsUn9c,16459
|
|
737
737
|
ctm_python_client/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
738
738
|
ctm_python_client/ext/autogen.py,sha256=Oo5UZ2HKIuMh98e2FDb9GN9dChVe1mt3kcaaOaqBNPk,6671
|
|
739
739
|
ctm_python_client/ext/credential.py,sha256=2AdNAPtquq9ApH41pWi8Zt8mhlh9VNWVFXeLCNrxOfA,469
|
|
740
740
|
ctm_python_client/ext/viz.py,sha256=oVY7DYP0H-nCGRQIb1nZgspc8DQdsS8yWUCAl5x_dwg,1672
|
|
741
|
-
ctm_python_client-2.4.
|
|
742
|
-
ctm_python_client-2.4.
|
|
743
|
-
ctm_python_client-2.4.
|
|
744
|
-
ctm_python_client-2.4.
|
|
745
|
-
ctm_python_client-2.4.
|
|
741
|
+
ctm_python_client-2.4.3.dist-info/LICENSE,sha256=L9eFhIgJK0TNYFm9I7tDUR1CDI8muWkBJvzpbkGCVh8,1525
|
|
742
|
+
ctm_python_client-2.4.3.dist-info/METADATA,sha256=uQqXc1bpzr0YizRoQQVWDvq1_au8SCHv3_VPapKu81E,2921
|
|
743
|
+
ctm_python_client-2.4.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
744
|
+
ctm_python_client-2.4.3.dist-info/top_level.txt,sha256=Dz3aBWbGmLA3lZcNMUAWX_Yhdw0FdplhI52YBid8Oe0,31
|
|
745
|
+
ctm_python_client-2.4.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|