Skip to content

Commit

Permalink
Fix: Filter for correct target
Browse files Browse the repository at this point in the history
Quoting is used to filter for the target, previously the first
partially matching target based on gvmd's filtering was set.
  • Loading branch information
4D617274696E authored and bjoernricks committed Nov 13, 2023
1 parent ab195f7 commit 806b2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-random-reports.gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 806b2eb

Please sign in to comment.