From 7fa569f87d1bd206bd30e73d529ebefd3459b838 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 8 Dec 2022 09:37:14 +0000 Subject: [PATCH] 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. --- src/fu-engine.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index 6050e6112..83670f420 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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