ctm-python-client 2.4.0__py3-none-any.whl → 2.4.2__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 +9 -6
- ctm_python_client/__init__.py +1 -1
- ctm_python_client/core/workflow.py +6 -3
- {ctm_python_client-2.4.0.dist-info → ctm_python_client-2.4.2.dist-info}/METADATA +1 -1
- {ctm_python_client-2.4.0.dist-info → ctm_python_client-2.4.2.dist-info}/RECORD +8 -8
- {ctm_python_client-2.4.0.dist-info → ctm_python_client-2.4.2.dist-info}/LICENSE +0 -0
- {ctm_python_client-2.4.0.dist-info → ctm_python_client-2.4.2.dist-info}/WHEEL +0 -0
- {ctm_python_client-2.4.0.dist-info → ctm_python_client-2.4.2.dist-info}/top_level.txt +0 -0
aapi/bases.py
CHANGED
|
@@ -66,9 +66,9 @@ class AAPIObject:
|
|
|
66
66
|
file_path: str = None, delete_afterwards: bool = True, open_in_browser: str = None) -> RunMonitor:
|
|
67
67
|
# Import circular dependency
|
|
68
68
|
from ctm_python_client.core.workflow import Workflow, WorkflowDefaults
|
|
69
|
-
from aapi import
|
|
69
|
+
from aapi import Folder
|
|
70
70
|
|
|
71
|
-
if
|
|
71
|
+
if (hasattr(self, '_type') and 'Job' in self._type) or (hasattr(self, 'job_list') and self.job_list is not None and len(self.job_list) > 0):
|
|
72
72
|
try:
|
|
73
73
|
on_demand_workflow = Workflow(
|
|
74
74
|
environment,
|
|
@@ -85,16 +85,19 @@ 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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
if e.body:
|
|
96
|
+
errors = [err.get('message', '') + ' ' + err.get('item', '')
|
|
97
|
+
for err in json.loads(e.body)['errors']]
|
|
98
|
+
raise RuntimeError(f"AAPI request failed: {', '.join(errors)}")
|
|
99
|
+
else:
|
|
100
|
+
raise e
|
|
98
101
|
finally:
|
|
99
102
|
on_demand_workflow.clear_all()
|
|
100
103
|
else:
|
ctm_python_client/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
__version__ = '2.4.
|
|
1
|
+
__version__ = '2.4.2'
|
|
2
2
|
__author__ = 'BMC Software'
|
|
@@ -438,9 +438,12 @@ class Workflow(BaseWorkflow):
|
|
|
438
438
|
run_.open_in_browser()
|
|
439
439
|
return run_
|
|
440
440
|
except Exception as e:
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
if e.body:
|
|
442
|
+
errors = [err.get('message', '') + ' ' + err.get('item', '')
|
|
443
|
+
for err in json.loads(e.body)['errors']]
|
|
444
|
+
raise RuntimeError(f"AAPI request failed: {', '.join(errors)}")
|
|
445
|
+
else:
|
|
446
|
+
raise e
|
|
444
447
|
finally:
|
|
445
448
|
if delete_afterwards:
|
|
446
449
|
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=VIEQmrGuaPecvsijOzDiINQstzbif8AmlBv14PCFmQc,4171
|
|
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=R1R4gwFGgCD4mpdrAbl_7FXBJXDw96LY7uKTrKJIcaA,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=4R-porwbqK40taJGQ33G3Id-VV2MI747NiTnsrRvr2k,16360
|
|
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.2.dist-info/LICENSE,sha256=L9eFhIgJK0TNYFm9I7tDUR1CDI8muWkBJvzpbkGCVh8,1525
|
|
742
|
+
ctm_python_client-2.4.2.dist-info/METADATA,sha256=fe89_q6yXyxJQ9_g8HvwA9rj16wPyPb4OIlf53HlUmo,2921
|
|
743
|
+
ctm_python_client-2.4.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
744
|
+
ctm_python_client-2.4.2.dist-info/top_level.txt,sha256=Dz3aBWbGmLA3lZcNMUAWX_Yhdw0FdplhI52YBid8Oe0,31
|
|
745
|
+
ctm_python_client-2.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|