From 75e816ba73d178c92e6fefff057b27254036be97 Mon Sep 17 00:00:00 2001 From: linuxdaemon Date: Sun, 12 May 2024 17:12:26 -0400 Subject: [PATCH] fix: match target id attribute --- src/gvm_sync_targets/cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gvm_sync_targets/cli/__init__.py b/src/gvm_sync_targets/cli/__init__.py index 7631464..0fad623 100644 --- a/src/gvm_sync_targets/cli/__init__.py +++ b/src/gvm_sync_targets/cli/__init__.py @@ -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: