[VS] Fix not configured alert description.

This commit is contained in:
Nicolo Maio 2023-12-05 19:03:26 +01:00
parent 31b7175929
commit 9d61a1f41e
2 changed files with 4 additions and 4 deletions

View file

@ -116,8 +116,8 @@ function alert_vulnerability_scan.format(ifid, alert, alert_type_params, local_e
-- message for host not configured alert
if (alert_type_params.is_host_not_configured) then
local scan_type_label = ""
if (alert_type_params.scan_type) then
scan_type_label = i18n("hosts_stats.page_scan_hosts.scan_type_list."..alert_type_params.scan_type)
if (alert_type_params.sub_scan_type) then
scan_type_label = i18n("hosts_stats.page_scan_hosts.scan_type_list."..alert_type_params.sub_scan_type)
end
msg = msg .. i18n("vulnerability_scan.host_not_configured", {host = alert_type_params.host, scan_type_label = scan_type_label})
end