diff --git a/files/gvm_library.py b/files/gvm_library.py index c8579619775615b07da778b3df6f2360db96add6..b46c3ab09fc46515aaa2ac1f48b081538c2d361f 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]