openmpi fix external find for 0.17 (#27255)

This commit is contained in:
Robert Underwood 2021-11-09 05:58:14 -05:00 committed by GitHub
parent 808375429d
commit 2153ac5863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1059,7 +1059,7 @@ def is_enabled(text):
# This code gets all the fabric names from the variants list
# Idea taken from the AutotoolsPackage source.
def get_options_from_variant(self, name):
values = self.variants[name].values
values = self.variants[name][0].values
if getattr(values, 'feature_values', None):
values = values.feature_values
return values