Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Commit 15314ea9 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix return type.

parent 0d251b54
Pipeline #33634 passed with stages
in 2 minutes and 16 seconds
......@@ -47,6 +47,7 @@ class MappingFileHandler:
status['mapping_file'] = True
else:
status['mapping_file'] = False
status['status'] = 'FATAL'
status['messages'].append(result_mapping['message'])
if result['xslt_file'] != '':
result_xslt = self._send_config_to_kafka(record_set_id, self.topic, 'transform',
......@@ -55,9 +56,11 @@ class MappingFileHandler:
status['xslt_file'] = True
else:
status['xslt_file'] = False
status['status'] = 'WARNING'
status['messages'].append(result_xslt['message'])
else:
status['xslt_file'] = False
status['status'] = 'WARNING'
if result['local_transform'] != '':
result_local_transform = self._send_config_to_kafka(record_set_id, self.topic,
'localTransform',
......@@ -66,9 +69,13 @@ class MappingFileHandler:
status['local_transform_file'] = True
else:
status['local_transform_file'] = False
status['status'] = 'WARNING'
status['messages'].append(result_local_transform['message'])
else:
status['local_transform_file'] = False
status['status'] = 'WARNING'
if 'status' not in status:
status['status'] = 'SUCCESS'
return status
def _retrieve_mapping_files(self, record_set_id: str) -> Dict[str, Union[str, bool, list]]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment