From 24f2a616dd8894361eb66fa0f5c6e8ea3aa08cfd Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Wed, 7 Jun 2017 13:56:15 -0400 Subject: [PATCH] Fix manual reference for dmidecode (#25444) dmidecode(1) does not exist, dmidecode(8) does exists. (rebased from https://github.com/ansible/ansible/pull/24106) --- lib/ansible/module_utils/facts/hardware/netbsd.py | 4 ++-- lib/ansible/module_utils/facts/hardware/openbsd.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/module_utils/facts/hardware/netbsd.py b/lib/ansible/module_utils/facts/hardware/netbsd.py index 3b58794bf8..c716ea454c 100644 --- a/lib/ansible/module_utils/facts/hardware/netbsd.py +++ b/lib/ansible/module_utils/facts/hardware/netbsd.py @@ -138,9 +138,9 @@ class NetBSDHardware(Hardware): def get_dmi_facts(self): dmi_facts = {} - # We don't use dmidecode(1) here because: + # We don't use dmidecode(8) here because: # - it would add dependency on an external package - # - dmidecode(1) can only be ran as root + # - dmidecode(8) can only be ran as root # So instead we rely on sysctl(8) to provide us the information on a # best-effort basis. As a bonus we also get facts on non-amd64/i386 # platforms this way. diff --git a/lib/ansible/module_utils/facts/hardware/openbsd.py b/lib/ansible/module_utils/facts/hardware/openbsd.py index 04577e4dc8..d66ce21268 100644 --- a/lib/ansible/module_utils/facts/hardware/openbsd.py +++ b/lib/ansible/module_utils/facts/hardware/openbsd.py @@ -146,9 +146,9 @@ class OpenBSDHardware(Hardware): def get_dmi_facts(self): dmi_facts = {} - # We don't use dmidecode(1) here because: + # We don't use dmidecode(8) here because: # - it would add dependency on an external package - # - dmidecode(1) can only be ran as root + # - dmidecode(8) can only be ran as root # So instead we rely on sysctl(8) to provide us the information on a # best-effort basis. As a bonus we also get facts on non-amd64/i386 # platforms this way.