From 9b9799f9c62c0b31ea1b6d0238c90de38a75eadd Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sat, 16 Jul 2022 14:03:22 +0100 Subject: [PATCH] Use the correct protocol member when converting to JSON --- libfwupd/fwupd-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfwupd/fwupd-device.c b/libfwupd/fwupd-device.c index ada45471d..f03313a55 100644 --- a/libfwupd/fwupd-device.c +++ b/libfwupd/fwupd-device.c @@ -2935,7 +2935,7 @@ fwupd_device_to_json_full(FwupdDevice *self, JsonBuilder *builder, FwupdDeviceFl fwupd_common_json_add_string(builder, FWUPD_RESULT_KEY_PLUGIN, priv->plugin); fwupd_common_json_add_string(builder, FWUPD_RESULT_KEY_PROTOCOL, priv->protocol); if (priv->protocols->len > 1) { /* --> 0 when bumping API */ - json_builder_set_member_name(builder, "VendorIds"); + json_builder_set_member_name(builder, "Protocols"); json_builder_begin_array(builder); for (guint i = 0; i < priv->protocols->len; i++) { const gchar *tmp = g_ptr_array_index(priv->protocols, i);