ctm-python-client 2.6.4__py3-none-any.whl → 2.6.5__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.
- ctm_python_client/ext/autogen.py +11 -2
- {ctm_python_client-2.6.4.dist-info → ctm_python_client-2.6.5.dist-info}/METADATA +1 -1
- {ctm_python_client-2.6.4.dist-info → ctm_python_client-2.6.5.dist-info}/RECORD +6 -6
- {ctm_python_client-2.6.4.dist-info → ctm_python_client-2.6.5.dist-info}/WHEEL +1 -1
- {ctm_python_client-2.6.4.dist-info → ctm_python_client-2.6.5.dist-info}/licenses/LICENSE +0 -0
- {ctm_python_client-2.6.4.dist-info → ctm_python_client-2.6.5.dist-info}/top_level.txt +0 -0
ctm_python_client/ext/autogen.py
CHANGED
|
@@ -64,6 +64,15 @@ class AIPluginCustomDefinition:
|
|
|
64
64
|
comments: typing.List[str]
|
|
65
65
|
|
|
66
66
|
|
|
67
|
+
def normalize_default(default):
|
|
68
|
+
if not isinstance(default, str) or '\n' not in default:
|
|
69
|
+
return default
|
|
70
|
+
without_trailing_newlines = default.rstrip('\n')
|
|
71
|
+
if '\n' not in without_trailing_newlines and without_trailing_newlines.strip():
|
|
72
|
+
return without_trailing_newlines
|
|
73
|
+
return ''
|
|
74
|
+
|
|
75
|
+
|
|
67
76
|
def create_ai_custom_definitions(ai_plugin: Plugin) -> typing.Tuple[AIPluginCustomDefinition, AIPluginCustomDefinition]:
|
|
68
77
|
plugin_name = ai_plugin.job_name.split(':')[-1]
|
|
69
78
|
plugin_cp_name = ai_plugin.cp_name.split(':')[-1]
|
|
@@ -92,7 +101,7 @@ def create_ai_custom_definitions(ai_plugin: Plugin) -> typing.Tuple[AIPluginCust
|
|
|
92
101
|
|
|
93
102
|
domain_name = v.get('DomainName')
|
|
94
103
|
if domain_name in ai_plugin.job_definition['Defaults']:
|
|
95
|
-
default = ai_plugin.job_definition['Defaults'][domain_name]
|
|
104
|
+
default = normalize_default(ai_plugin.job_definition['Defaults'][domain_name])
|
|
96
105
|
|
|
97
106
|
job['optional_properties'].append((
|
|
98
107
|
domain_name.split(r'%%UCM-')[1].lower(),
|
|
@@ -115,7 +124,7 @@ def create_ai_custom_definitions(ai_plugin: Plugin) -> typing.Tuple[AIPluginCust
|
|
|
115
124
|
|
|
116
125
|
domain_name = v.get('DomainName')
|
|
117
126
|
if domain_name in ai_plugin.cp_definition['Defaults']:
|
|
118
|
-
default = ai_plugin.cp_definition['Defaults'][domain_name]
|
|
127
|
+
default = normalize_default(ai_plugin.cp_definition['Defaults'][domain_name])
|
|
119
128
|
|
|
120
129
|
cp['optional_properties'].append((
|
|
121
130
|
domain_name.lower(),
|
|
@@ -914,11 +914,11 @@ ctm_python_client/core/credential.py,sha256=UDN1Q8IYf-ufiXUr-aHm1MDu9bVX8J0Hk8Bh
|
|
|
914
914
|
ctm_python_client/core/monitoring.py,sha256=62fbSTEGFpHcBrXK8R8cWejq6DlrmdaNumXbOaDa3HY,12043
|
|
915
915
|
ctm_python_client/core/workflow.py,sha256=1Ucyu57NTNt4Q4mGnC6FFI3gEwdE49UM7fdAE9IjmrA,19817
|
|
916
916
|
ctm_python_client/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
917
|
-
ctm_python_client/ext/autogen.py,sha256
|
|
917
|
+
ctm_python_client/ext/autogen.py,sha256=Ku2noar1F9whPYsJwcZRR2x0Pe7tNOAq2-T-10Cum88,7772
|
|
918
918
|
ctm_python_client/ext/credential.py,sha256=2AdNAPtquq9ApH41pWi8Zt8mhlh9VNWVFXeLCNrxOfA,469
|
|
919
919
|
ctm_python_client/ext/viz.py,sha256=wVKQ6xNRMVfp6TtWIBQGmSIiVuXG2Ly11AeCKixV8xU,1909
|
|
920
|
-
ctm_python_client-2.6.
|
|
921
|
-
ctm_python_client-2.6.
|
|
922
|
-
ctm_python_client-2.6.
|
|
923
|
-
ctm_python_client-2.6.
|
|
924
|
-
ctm_python_client-2.6.
|
|
920
|
+
ctm_python_client-2.6.5.dist-info/licenses/LICENSE,sha256=L9eFhIgJK0TNYFm9I7tDUR1CDI8muWkBJvzpbkGCVh8,1525
|
|
921
|
+
ctm_python_client-2.6.5.dist-info/METADATA,sha256=S3fmw4TXdZWkhnc7SpBPgGcrfqdixBnbanEoF0r7DYs,3139
|
|
922
|
+
ctm_python_client-2.6.5.dist-info/WHEEL,sha256=a-udL2m4V_6Yn8b-uKzWb12RjRxwwMo6ohYFM24tpaY,91
|
|
923
|
+
ctm_python_client-2.6.5.dist-info/top_level.txt,sha256=Dz3aBWbGmLA3lZcNMUAWX_Yhdw0FdplhI52YBid8Oe0,31
|
|
924
|
+
ctm_python_client-2.6.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|