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:
parent
5a7c58b2be
commit
00bed0eb1c
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/66780-facts-detect-kvm-server.yml
Normal file
2
changelogs/fragments/66780-facts-detect-kvm-server.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- facts - fix detection of virtualization type when dmi product name is KVM Server
|
|
@ -93,7 +93,7 @@ class LinuxVirtual(Virtual):
|
||||||
|
|
||||||
product_name = get_file_content('/sys/devices/virtual/dmi/id/product_name')
|
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'
|
virtual_facts['virtualization_type'] = 'kvm'
|
||||||
return virtual_facts
|
return virtual_facts
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue