From 90141033a3f61d8e8e4d33e1c6368d77e99eaac2 Mon Sep 17 00:00:00 2001
From: qweqweasdasd <qweqweasdasd@infn.it>
Date: Mon, 25 Jul 2022 19:39:12 +0200
Subject: [PATCH] Fix python command line

---
 tasks/main.yml | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 2c70eb4..7a600c7 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -71,20 +71,10 @@
     command: python3 /home/gmp/script.py "{{ endpoints_to_scan }}" "{{ paas_ci_workdir + '/dep.json'}}" "{{ paas_ci_workdir }}" 
     register: scan_output
   
-  - name: Find reports files in workspace forlder"
-    find:
-      paths: "{{ paas_ci_workdir }}"
-      patterns: "*report.txt"
-      file_type: "file"
-    register: report_files
-
-  - debug: 
-      var: report_files
-
-  - name: display all reports
+  - name: display report
     ansible.builtin.debug: var=item
     with_file:
-    - "{{ report_files }}"
+    - "{{ paas_ci_workdir + '/report.txt' }}" 
 
   - name: get Severity file content
     ansible.builtin.debug: var=item
@@ -95,6 +85,9 @@
   - name: save the Json data to a Variable as a Fact
     set_fact:
       severity_json: "{{ severity | from_json }}"
+  
+  - debug:
+      var: severity_json
 
   - name: Get scan outputs (if successful)
     assert:
-- 
GitLab