From 19d82d9b368b537c5115ba90a8950fb3a674ebe8 Mon Sep 17 00:00:00 2001 From: qweqweasdasd <qweqweasdasd@infn.it> Date: Mon, 25 Jul 2022 18:50:37 +0200 Subject: [PATCH] Fix python command line --- tasks/main.yml | 4 ++-- utils/script.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 942eebe..1933607 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 4300373..60c0f31 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) -- GitLab