in iact3/termial_print.py [0:0]
def _display_validation(template_validation: dict):
result_json = {
"validate_result": template_validation["Code"] if "Code" in template_validation else 'LegalTemplate',
"result_reason": template_validation["Message"] if "Message" in template_validation else 'Check passed'
}
tab = tabulate.tabulate([result_json], headers="keys")
tab_lines = tab.splitlines()
for i, line in enumerate(tab_lines):
if i >= 2 and result_json['validate_result'] != 'LegalTemplate':
LOG.error(f'{PrintMsg.text_red_background_write}{line}{PrintMsg.rst_color}')
else:
LOG.info(line)