Skip to content

Commit

Permalink
fix: match target id attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed May 12, 2024
1 parent c32a958 commit 75e816b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gvm_sync_targets/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def gvm_sync_targets(
if target is not None and target is not new_target:
old_target_id = to_str(target.attrib["id"])
tasks = cast("ElementBase", gmp.get_tasks()).findall(
f"task[target='{old_target_id}']"
f"task[target/@id='{old_target_id}']"
)

for task in tasks:
Expand Down

0 comments on commit 75e816b

Please sign in to comment.