From 8c39649fea15993f57d03c55e7ced8500c808e48 Mon Sep 17 00:00:00 2001 From: Sylvain Pineau Date: Wed, 11 Apr 2018 16:07:06 +0200 Subject: submission:raw_devices_dmi_json: Fix syntax to stay compatible with jq 1.3 Fixes lp:1762546 --- units/submission/jobs.pxu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/units/submission/jobs.pxu b/units/submission/jobs.pxu index f6f73bc..43defe3 100644 --- a/units/submission/jobs.pxu +++ b/units/submission/jobs.pxu @@ -22,9 +22,9 @@ requires: user: root command: dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode | \ - jq '[.[0]."_attributes" + - {"category": .[0]."category"}, .[1]."_attributes" + - {"category": .[1]."category"}]' + jq '[.[0]._attributes + + {"category": .[0].category}, .[1]._attributes + + {"category": .[1].category}]' estimated_duration: 1 _description: Attaches dmidecode output _summary: Attaches json dumps of udev_resource raw dmi devices -- cgit v1.2.3