Add the fwupd version to the HSI result if the chassis is invalid

If the user uploads a report to the LVFS we don't currently get the fwupd
version data in this case. And it makes the LVFS unhappy.
This commit is contained in:
Richard Hughes 2022-12-08 09:37:14 +00:00
parent b686da54c8
commit 7fa569f87d

View File

@ -6533,7 +6533,11 @@ fu_engine_attrs_calculate_hsi_for_chassis(FuEngine *self)
break;
}
return g_strdup_printf("HSI:INVALID:chassis[0x%02x]", val);
return g_strdup_printf("HSI:INVALID:chassis[0x%02x] (v%d.%d.%d)",
val,
FWUPD_MAJOR_VERSION,
FWUPD_MINOR_VERSION,
FWUPD_MICRO_VERSION);
}
static gboolean