summaryrefslogtreecommitdiff
path: root/units/submission
diff options
Diffstat (limited to 'units/submission')
-rw-r--r--units/submission/jobs.pxu14
1 files changed, 6 insertions, 8 deletions
diff --git a/units/submission/jobs.pxu b/units/submission/jobs.pxu
index a21c897..f6f73bc 100644
--- a/units/submission/jobs.pxu
+++ b/units/submission/jobs.pxu
@@ -1,11 +1,9 @@
id: dkms_info_json
plugin: attachment
category_id: com.canonical.plainbox::info
-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 +22,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 +34,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 +45,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.