cleanup to dmi fact discovery
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.
Showing
Please
register
or
sign in
to comment