Fix manual reference for dmidecode (#25444)

dmidecode(1) does not exist, dmidecode(8) does exists.

(rebased from https://github.com/ansible/ansible/pull/24106)
This commit is contained in:
Adrian Likins 2017-06-07 13:56:15 -04:00 committed by GitHub
parent 656db3707c
commit 24f2a616dd
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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.