mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Detect UEFI VMware guests (#26590)
VMware provides a different DMI product name for VMs booted via UEFI vs BIOS. VMware provides a different DMI product name for VMs booted via UEFI ('VMware7,1') vs BIOS ('VMware Virtual Platform') Fixes #26517
This commit is contained in:
parent
05e5698472
commit
2e6ff97d06
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ class LinuxVirtual(Virtual):
|
|||
virtual_facts['virtualization_role'] = 'guest'
|
||||
return virtual_facts
|
||||
|
||||
if product_name == 'VMware Virtual Platform':
|
||||
if product_name in ['VMware Virtual Platform', 'VMware7,1']:
|
||||
virtual_facts['virtualization_type'] = 'VMware'
|
||||
virtual_facts['virtualization_role'] = 'guest'
|
||||
return virtual_facts
|
||||
|
|
Loading…
Reference in a new issue