lib/facter/facts/linux/hypervisors/vmware.rb in facter-4.0.30 vs lib/facter/facts/linux/hypervisors/vmware.rb in facter-4.0.31

- old
+ new

@@ -13,10 +13,11 @@ def call_the_resolver if vmware? @log.debug('Vmware hypervisor detected') fact_value = {} - fact_value[:version] = Facter::Resolvers::DmiDecode.resolve(:vmware_version) || '' + version = Facter::Resolvers::DmiDecode.resolve(:vmware_version) + fact_value[:version] = version if version && !version.empty? return Facter::ResolvedFact.new(FACT_NAME, fact_value) end @log.debug('No Vmware hypervisor detected.')