From dcbb901cc3e9e888bc8f87e87bdc0ca8436a2baa Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 5 Sep 2017 16:57:10 -0400 Subject: ds-identify: Make OpenStack return maybe on arch other than intel. OpenStack Nova identifies itself only to Intel guests. Make ds-identify return 'MAYBE' for OpenStack on non-intel arches. An unnecessary change here is to rename the 'policy_nodmi' kwarg to 'policy_no_dmi' in the related unit tests. LP: #1715241 --- tools/ds-identify | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/ds-identify b/tools/ds-identify index 33bd2991..ee5e05a4 100755 --- a/tools/ds-identify +++ b/tools/ds-identify @@ -833,6 +833,12 @@ dscheck_OpenStack() { return ${DS_FOUND} fi + # LP: #1715241 : arch other than intel are not identified properly. + case "$DI_UNAME_MACHINE" in + i?86|x86_64) :;; + *) return ${DS_MAYBE};; + esac + return ${DS_NOT_FOUND} } -- cgit v1.2.3