From 503a1633e608be5cb1f7368bd8cc3d82625bc107 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 24 Nov 2021 10:37:25 +0000 Subject: [PATCH] trivial: Allow using fwupdmgr get-history --json for QA --- src/fu-util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fu-util.c b/src/fu-util.c index 551fb51fb..32aefc1b8 100644 --- a/src/fu-util.c +++ b/src/fu-util.c @@ -1363,6 +1363,10 @@ fu_util_get_history(FuUtilPrivate *priv, gchar **values, GError **error) if (devices == NULL) return FALSE; + /* not for human consumption */ + if (priv->as_json) + return fu_util_get_devices_as_json(priv, devices, error); + /* show each device */ for (guint i = 0; i < devices->len; i++) { g_autoptr(GPtrArray) rels = NULL;