Skip to content
Snippets Groups Projects
Commit 59ab081b authored by qweqweasdasd's avatar qweqweasdasd
Browse files

Fix python command line

parent 6bf8a32d
No related branches found
No related tags found
No related merge requests found
...@@ -378,22 +378,13 @@ port_list_name = f"{auth_name}_pl_{host}" ...@@ -378,22 +378,13 @@ port_list_name = f"{auth_name}_pl_{host}"
report_filename = f"{output_dir}/{host}-report.txt" report_filename = f"{output_dir}/{host}-report.txt"
severity_filename = f"{output_dir}/{host}-severity.txt" severity_filename = f"{output_dir}/{host}-severity.txt"
print("target_name",target_name)
print("task_name",task_name)
print("port_list_name",port_list_name)
print("report_filename",report_filename)
print("severity_filename",severity_filename)
pl = get_or_create_port_list(port_list_name,ports) pl = get_or_create_port_list(port_list_name,ports)
print_pretty_json(pl)
target = get_or_create_target(target_name,host,pl,ovs_ssh_credential_id) target = get_or_create_target(target_name,host,pl,ovs_ssh_credential_id)
print_pretty_json(target)
task = get_or_create_task(task_name, config_id, target['id'],scanner_id) task = get_or_create_task(task_name, config_id, target['id'],scanner_id)
print_pretty_json(task)
if task['status'] == 'New': if task['status'] == 'New':
task = start_task(task) task = start_task(task)
if wait_for_task_completition(task,wait_timeout): if wait_for_task_completition(task,wait_timeout):
print("Saving report and severity") print("Saving report and severity...")
save_report(task,txt_report_format_id, report_filename) save_report(task,txt_report_format_id, report_filename)
save_severity_report(task,severity_filename) save_severity_report(task,severity_filename)
print("Done") print("Done")
......
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