When invoking dmidecode, first use module.get_bin_path() and secondly use module.run_command. Remove sub function execute() from get_dmi_facts(). Simplify get_dmi_facts() by only using two mechanisms to determine dmi facts: first try /sys/devices/virtual/dmi and if not available, use dmidecode executable.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
authorized_key | Loading commit data... | |
cron | Loading commit data... | |
facter | Loading commit data... | |
filesystem | Loading commit data... | |
group | Loading commit data... | |
lvg | Loading commit data... | |
lvol | Loading commit data... | |
mount | Loading commit data... | |
ohai | Loading commit data... | |
ping | Loading commit data... | |
seboolean | Loading commit data... | |
selinux | Loading commit data... | |
service | Loading commit data... | |
setup | Loading commit data... | |
sysctl | Loading commit data... | |
user | Loading commit data... | |
zfs | Loading commit data... |