trivial: Allow using fwupdmgr get-history --json for QA

This commit is contained in:
Richard Hughes 2021-11-24 10:37:25 +00:00
parent 6e651269ba
commit 503a1633e6

View File

@ -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;