diff --git a/lib/facter/facts_utils/virtual_detector.rb b/lib/facter/facts_utils/virtual_detector.rb index 5ae67627bb..ab15f2b8a0 100644 --- a/lib/facter/facts_utils/virtual_detector.rb +++ b/lib/facter/facts_utils/virtual_detector.rb @@ -22,7 +22,7 @@ def check_dmi @log.debug('Checking DMI') vendor = Facter::Resolvers::DmiDecode.resolve(:vendor) @log.debug("dmi detected vendor: #{vendor}") - return 'aws' if vendor =~ /Amazon/ + return 'kvm' if vendor =~ /Amazon/ 'xen' if vendor =~ /Xen/ end diff --git a/lib/facter/version.rb b/lib/facter/version.rb index 023806d11f..4dc4e430ed 100644 --- a/lib/facter/version.rb +++ b/lib/facter/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Facter - VERSION = '4.0.42' unless defined?(VERSION) + VERSION = '4.0.45' unless defined?(VERSION) end diff --git a/spec/facter/facts_utils/virtual_detector_spec.rb b/spec/facter/facts_utils/virtual_detector_spec.rb index 44b2dd5395..d5eac594a8 100644 --- a/spec/facter/facts_utils/virtual_detector_spec.rb +++ b/spec/facter/facts_utils/virtual_detector_spec.rb @@ -46,7 +46,7 @@ end it 'returns vendor' do - expect(detector.platform).to eq('aws') + expect(detector.platform).to eq('kvm') end end