From 7b1204bce06297320b514b511dac883e3a56e845 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 14 Jul 2022 15:43:19 +0100 Subject: [PATCH] trivial: Fix outputting the new security attr flags to JSON --- libfwupd/fwupd-security-attr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfwupd/fwupd-security-attr.c b/libfwupd/fwupd-security-attr.c index f8b59555f..6f3ea996e 100644 --- a/libfwupd/fwupd-security-attr.c +++ b/libfwupd/fwupd-security-attr.c @@ -73,7 +73,7 @@ fwupd_security_attr_flag_to_string(FwupdSecurityAttrFlags flag) if (flag == FWUPD_SECURITY_ATTR_FLAG_ACTION_CONTACT_OEM) return "action-contact-oem"; if (flag == FWUPD_SECURITY_ATTR_FLAG_ACTION_CONFIG_FW) - return "action-contact-oem"; + return "action-config-fw"; if (flag == FWUPD_SECURITY_ATTR_FLAG_ACTION_CONFIG_OS) return "action-config-os"; return NULL; @@ -106,7 +106,7 @@ fwupd_security_attr_flag_from_string(const gchar *flag) return FWUPD_SECURITY_ATTR_FLAG_RUNTIME_ISSUE; if (g_strcmp0(flag, "action-contact-oem") == 0) return FWUPD_SECURITY_ATTR_FLAG_ACTION_CONTACT_OEM; - if (g_strcmp0(flag, "action-contact-oem") == 0) + if (g_strcmp0(flag, "action-config-fw") == 0) return FWUPD_SECURITY_ATTR_FLAG_ACTION_CONFIG_FW; if (g_strcmp0(flag, "action-config-os") == 0) return FWUPD_SECURITY_ATTR_FLAG_ACTION_CONFIG_OS;