summaryrefslogtreecommitdiff
diff options
authorSylvain Pineau <sylvain.pineau@canonical.com>2018-02-05 16:51:44 +0100
committerSylvain Pineau <sylvain.pineau@canonical.com>2018-02-05 16:51:44 +0100
commit2e85826e1ade1036ab8dbc06dc2eea4964191773 (patch)
treea8c1eac4dcf83bbf248bad40f8068f72dd395bf3
parent04ac97bf4007b74aee55960bb1822c2d215cfa14 (diff)
submission: Remove --indent 4 from jq commands (not supported on 14.04)
Fixes: lp:1695912
-rw-r--r--units/submission/jobs.pxu12
1 files changed, 6 insertions, 6 deletions
diff --git a/units/submission/jobs.pxu b/units/submission/jobs.pxu
index a21c8970..15654091 100644
--- a/units/submission/jobs.pxu
+++ b/units/submission/jobs.pxu
@@ -5,7 +5,7 @@ requires:
package.name == 'dkms'
command:
dkms_info --format json | python3 -m plainbox dev parse dkms-info | \
- jq --indent 4 '.dkms_info'
+ jq '.dkms_info'
_description: Attaches json dumps of installed dkms package information.
_summary: Attaches json dumps of installed dkms package information.
@@ -24,9 +24,9 @@ requires:
user: root
command:
dmidecode -t bios -t system | python3 -m plainbox dev parse dmidecode | \
- jq --indent 4 '[.[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
@@ -36,7 +36,7 @@ plugin: attachment
category_id: com.canonical.plainbox::info
command:
find /etc/modprobe.* -name \*.conf | xargs cat | python3 -m plainbox dev parse modprobe |
- jq --indent 4 'to_entries | map({"module": .key, "options": .value})'
+ jq 'to_entries | map({"module": .key, "options": .value})'
estimated_duration: 0.015
_description: Attaches the contents of the various modprobe conf files.
_summary: Attach the contents of /etc/modprobe.*
@@ -47,7 +47,7 @@ plugin: attachment
category_id: com.canonical.plainbox::info
command:
lspci -x | python3 -m plainbox dev parse pci-subsys-id | \
- jq --indent 4 '.pci_subsystem_id'
+ jq '.pci_subsystem_id'
estimated_duration: 0.1
_description: Attaches a hex dump of the standard part of the PCI configuration
space for all PCI devices.