summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-07-28 13:40:40 -0400
committerGitHub <noreply@github.com>2017-07-28 13:40:40 -0400
commitfd48c2d15d13c53827bec2373f269b9728ac1f2d (patch)
treec8e9632b06f698f5fdea47fa4eb7e9ae8c2254bd /roles
parent8bf8f395ac0d83b7aa97b8388639ae590bf78e6f (diff)
parente70ca762c7b523bf4f7f9cb9015731f9d6e1688e (diff)
downloadopenshift-fd48c2d15d13c53827bec2373f269b9728ac1f2d.tar.gz
openshift-fd48c2d15d13c53827bec2373f269b9728ac1f2d.tar.bz2
openshift-fd48c2d15d13c53827bec2373f269b9728ac1f2d.tar.xz
openshift-fd48c2d15d13c53827bec2373f269b9728ac1f2d.zip
Merge pull request #4878 from mtnbikenc/refactor-bios-version
Merged by openshift-bot
Diffstat (limited to 'roles')
-rwxr-xr-xroles/openshift_facts/library/openshift_facts.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py
index 49cc51b48..42c4945b4 100755
--- a/roles/openshift_facts/library/openshift_facts.py
+++ b/roles/openshift_facts/library/openshift_facts.py
@@ -2222,14 +2222,10 @@ class OpenShiftFacts(object):
product_version = self.system_facts['ansible_product_version']
virt_type = self.system_facts['ansible_virtualization_type']
virt_role = self.system_facts['ansible_virtualization_role']
+ bios_vendor = self.system_facts['ansible_system_vendor']
provider = None
metadata = None
- # TODO: this is not exposed through module_utils/facts.py in ansible,
- # need to create PR for ansible to expose it
- bios_vendor = get_file_content( # noqa: F405
- '/sys/devices/virtual/dmi/id/bios_vendor'
- )
if bios_vendor == 'Google':
provider = 'gce'
metadata_url = ('http://metadata.google.internal/'