diff --git a/tasks/main.yml b/tasks/main.yml index 8ef903dfec18f3ea251e3ea624ab57cc71f7c70a..59e4f2e18121a595601470863985239945b0e30d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -77,9 +77,7 @@ - "{{ paas_ci_workdir + '/report.txt' }}" - name: get Severity file content - ansible.builtin.debug: var=item - with_file: - - "{{ paas_ci_workdir + '/severity.txt'}}" + shell: cat "{{ paas_ci_workdir + '/severity.json'}}" register: severity - name: import severity diff --git a/utils/script.py b/utils/script.py index aafada78849f07e80997894835dc026a4d0fae7b..a9efb96015caa0dd474937de4370e4292a1ce5f2 100644 --- a/utils/script.py +++ b/utils/script.py @@ -411,7 +411,7 @@ for host,ports in endpoints.items(): task_name = f"{auth_name}_task_{host}" port_list_name = f"{auth_name}_pl_{host}" report_filename = f"{output_dir}/report.txt" - severity_filename = f"{output_dir}/severity.txt" + severity_filename = f"{output_dir}/severity.json" pl = get_or_create_port_list(port_list_name,ports) print_pretty_json(pl)