mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 17:28:20 +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)
|
if (devices == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
/* not for human consumption */
|
||||||
|
if (priv->as_json)
|
||||||
|
return fu_util_get_devices_as_json(priv, devices, error);
|
||||||
|
|
||||||
/* show each device */
|
/* show each device */
|
||||||
for (guint i = 0; i < devices->len; i++) {
|
for (guint i = 0; i < devices->len; i++) {
|
||||||
g_autoptr(GPtrArray) rels = NULL;
|
g_autoptr(GPtrArray) rels = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user