facts virtual: detect KVM when product_name is 'KVM Server' (#66780)

* facts virtual: detect KVM when product_name is 'KVM Server'

* added changelog fragment for "facts virtual: detect KVM when product_name is 'KVM Server'"
This commit is contained in:
Jannik Vieten 2020-02-18 12:14:20 +01:00 committed by GitHub
parent 5a7c58b2be
commit 00bed0eb1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- facts - fix detection of virtualization type when dmi product name is KVM Server

View file

@ -93,7 +93,7 @@ class LinuxVirtual(Virtual):
product_name = get_file_content('/sys/devices/virtual/dmi/id/product_name')
if product_name in ('KVM', 'Bochs', 'AHV'):
if product_name in ('KVM', 'KVM Server', 'Bochs', 'AHV'):
virtual_facts['virtualization_type'] = 'kvm'
return virtual_facts