From f44660c02a5b54a813b18fb2b4cccc281d5deff2 Mon Sep 17 00:00:00 2001 From: qweqweasdasd <qweqweasdasd@infn.it> Date: Mon, 25 Jul 2022 19:49:28 +0200 Subject: [PATCH] Fix python command line --- tasks/main.yml | 4 +--- utils/script.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8ef903d..59e4f2e 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 aafada7..a9efb96 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) -- GitLab