Use meaningful names

This commit is contained in:
Alfredo Cardigliano 2023-11-03 10:20:02 +01:00
parent 061f2b50fc
commit d29c4d384d
3 changed files with 29 additions and 29 deletions

View file

@ -23,7 +23,7 @@ if single_host then
rest_utils.answer(rest_utils.consts.err.invalid_args)
end
local res = vs_utils.schedule_host_scan(scan_type, host, ports, scan_id)
local res = vs_utils.schedule_ondemand_single_host_scan(scan_type, host, ports, scan_id)
if res then
rest_utils.answer(rest_utils.consts.success.ok)
@ -32,7 +32,7 @@ if single_host then
end
else
local res = vs_utils.schedule_all_hosts_scan()
local res = vs_utils.schedule_ondemand_all_hosts_scan()
if res then
rest_utils.answer(rest_utils.consts.success.ok)