From 9e45b74613e0ceaf53f5d1a0c0cef3e2948c018b Mon Sep 17 00:00:00 2001
From: "gioacchino.vino" <gioacchino.vino@infn.it>
Date: Tue, 9 Jan 2024 18:41:59 +0100
Subject: [PATCH] Reviewed scan python code

---
 files/gvm_library.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/gvm_library.py b/files/gvm_library.py
index c857961..b46c3ab 100644
--- a/files/gvm_library.py
+++ b/files/gvm_library.py
@@ -345,7 +345,7 @@ class GVMClient():
         if status == "201":
             target_id = str(res.xpath('@id')[0])
             client_res = self.client.get_targets(filter_string = target_id)
-            target_info = client_res.xpath('target')[0]:
+            target_info = client_res.xpath('target')[0]
             t = Target()
             t.client = self.client
             t.name = target_info.xpath('name/text()')[0]
-- 
GitLab