diff --git a/tasks/main.yml b/tasks/main.yml index 942eebece57f8f5876ed9f06ced7656d5703eec7..19336075ae5305a3f56d19444f9b52a12439ba8b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -74,12 +74,12 @@ - name: display all reports ansible.builtin.debug: var=item with_file: - - "{{ paas_ci_workdir + '/*reports.txt'}}" + - "{{ paas_ci_workdir + '/report.txt'}}" - name: display all severities ansible.builtin.debug: var=item with_file: - - "{{ paas_ci_workdir + '/*severity.txt'}}" + - "{{ paas_ci_workdir + '/severity.txt'}}" - name: Get scan outputs (if successful) assert: diff --git a/utils/script.py b/utils/script.py index 43003737183bb616ae6422383de744ab89b6bf84..60c0f3128267c5f792ecbe0335be4fd2af30d601 100644 --- a/utils/script.py +++ b/utils/script.py @@ -375,8 +375,8 @@ for host,ports in endpoints.items(): target_name = f"{auth_name}_target_{host}" task_name = f"{auth_name}_task_{host}" port_list_name = f"{auth_name}_pl_{host}" -report_filename = f"{output_dir}/{host}-report.txt" -severity_filename = f"{output_dir}/{host}-severity.txt" +report_filename = f"{output_dir}/report.txt" +severity_filename = f"{output_dir}/severity.txt" pl = get_or_create_port_list(port_list_name,ports) target = get_or_create_target(target_name,host,pl,ovs_ssh_credential_id)