mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 15:53:56 +00:00
trivial: Allow using fwupdmgr get-history --json for QA
This commit is contained in:
parent
6e651269ba
commit
503a1633e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user