summaryrefslogtreecommitdiff
diff options
authorPaul Larson <paul.larson@canonical.com>2017-07-26 08:30:28 -0500
committerPaul Larson <paul.larson@canonical.com>2017-07-26 08:30:28 -0500
commit405b8333ab37f90eb669f97aac150c0fe31a36d7 (patch)
tree15f8b10c2e14744eed488ae54b57202321b49353
parent86563da96e763897e3e99f1cc9def9dfc725639b (diff)
Add requires for dmi_attachment to check dmi_present resource state
-rw-r--r--jobs/info.txt.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/info.txt.in b/jobs/info.txt.in
index f22a3cb7..0b270d87 100644
--- a/jobs/info.txt.in
+++ b/jobs/info.txt.in
@@ -44,14 +44,14 @@ estimated_duration: 0.044
_description: Attaches info on DMI
_summary: Attach a copy of /sys/class/dmi/id/*
requires:
- cpuinfo.platform in ("i386", "x86_64")
+ dmi_present.state == 'supported'
id: dmidecode_attachment
plugin: attachment
category_id: com.canonical.plainbox::info
requires:
package.name == 'dmidecode' or executable.name == 'dmidecode'
- cpuinfo.platform in ("i386", "x86_64")
+ dmi_present.state == 'supported'
user: root
command: dmidecode | iconv -t 'utf-8' -c
estimated_duration: 0.030