From 274e32ef07191c4f1518ea3d05905da9b30abe0b Mon Sep 17 00:00:00 2001 From: Martin Hermann Date: Mon, 13 Nov 2023 10:04:47 +0100 Subject: [PATCH] Fix: Filter for correct target Quoting is used to filter for the target, previously the first partially matching target based on gvmd's filtering was set. --- scripts/generate-random-reports.gmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-random-reports.gmp.py b/scripts/generate-random-reports.gmp.py index 4e0e3dfa..76428f54 100755 --- a/scripts/generate-random-reports.gmp.py +++ b/scripts/generate-random-reports.gmp.py @@ -370,7 +370,7 @@ def generate_data(gmp, n_tasks, task_type, **kwargs): config_id = "085569ce-73ed-11df-83c3-002264764cea" generate_target() target_id = gmp.get_targets( - filter_string=f"Random_Report_Generation_Target_{calculate_timestamp(0)}" + filter_string=f"\"Random_Report_Generation_Target_{calculate_timestamp(0)}\"" ).xpath("//@id")[0] for i in range(n_tasks):