lib/facter/resolvers/dmi_decode.rb in facter-4.0.52 vs lib/facter/resolvers/dmi_decode.rb in facter-4.1.0
- old
+ new
@@ -35,10 +35,9 @@
output = Facter::Core::Execution.execute('dmidecode', logger: log)
@fact_list[:virtualbox_version] = output.match(/vboxVer_(\S+)/)&.captures&.first
@fact_list[:virtualbox_revision] = output.match(/vboxRev_(\S+)/)&.captures&.first
@fact_list[:vmware_version] = extract_vmware_version(output)
- @fact_list[:vendor] = output.match(/Vendor: (\S+)/)&.captures&.first
@fact_list[fact_name]
end
def extract_vmware_version(output)