Skip to content
Snippets Groups Projects
Commit 0fd5bed3 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Reviewed scan python code

parent 6875abcb
No related branches found
No related tags found
1 merge request!108Updated Python scan code
......@@ -49,7 +49,8 @@ class PortList:
def __str__(self):
d = {'name': self.name,
'id': self.id,
'in_use': self.in_use}
'in_use': self.in_use,
'client': self.client}
return pretty_json(d)
def __del__(self):
......@@ -94,7 +95,8 @@ class Target:
'id': self.id,
"in_use": self.in_use,
'hosts': self.hosts,
'port_list': self.port_list}
'port_list': self.port_list,
'client': self.client}
return pretty_json(d)
def __del__(self):
......@@ -155,7 +157,8 @@ class Task:
'in_use': self.in_use,
'status': self.status,
'report_id': self.report_id,
'target': self.target}
'target': self.target,
'client': self.client}
return pretty_json(d)
def start(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment