Fixes flow alerts table column width and description

This commit is contained in:
Matteo Biscosi 2021-02-26 16:10:34 +01:00
parent 4f0ac39efe
commit 39d3618351
8 changed files with 17 additions and 12 deletions

View file

@ -50,14 +50,14 @@ end
-- @return A human-readable string
function alert_tls_certificate_expired.format(ifid, alert, alert_type_params)
if not alert_type_params then
return i18n("flow_details.tls_certificate_expired")
return
end
local crts = {}
crts[#crts + 1] = formatEpoch(alert_type_params["tls_crt.notBefore"])
crts[#crts + 1] = formatEpoch(alert_type_params["tls_crt.notAfter"])
return string.format("%s [%s]", i18n("flow_details.tls_certificate_expired"), table.concat(crts, " - "))
return string.format("[%s]", table.concat(crts, " - "))
end
-- #######################################################