mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-25 20:26:02 +00:00
trivial: return an error string rather than HSI number for missing data
This commit is contained in:
parent
fc59a9bce1
commit
55af9a8238
@ -248,6 +248,11 @@ fu_security_attrs_calculate_hsi(FuSecurityAttrs *self, FuSecurityAttrsFlags flag
|
|||||||
if (fwupd_security_attr_has_flag(attr, FWUPD_SECURITY_ATTR_FLAG_RUNTIME_ISSUE) &&
|
if (fwupd_security_attr_has_flag(attr, FWUPD_SECURITY_ATTR_FLAG_RUNTIME_ISSUE) &&
|
||||||
fwupd_security_attr_has_flag(attr, FWUPD_SECURITY_ATTR_FLAG_SUCCESS))
|
fwupd_security_attr_has_flag(attr, FWUPD_SECURITY_ATTR_FLAG_SUCCESS))
|
||||||
continue;
|
continue;
|
||||||
|
if (fwupd_security_attr_has_flag(attr, FWUPD_SECURITY_ATTR_FLAG_MISSING_DATA)) {
|
||||||
|
g_string_append(str, "INVALID:missing-data");
|
||||||
|
return g_string_free(str, FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
attr_flags |= fwupd_security_attr_get_flags(attr);
|
attr_flags |= fwupd_security_attr_get_flags(attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user