From 405b8333ab37f90eb669f97aac150c0fe31a36d7 Mon Sep 17 00:00:00 2001 From: Paul Larson Date: Wed, 26 Jul 2017 08:30:28 -0500 Subject: Add requires for dmi_attachment to check dmi_present resource state --- jobs/info.txt.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs/info.txt.in b/jobs/info.txt.in index f22a3cb..0b270d8 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 -- cgit v1.2.3