Fix virtualization role for DigitalOcean droplets (#41062)
Fixes #41061
This commit is contained in:
parent
8c43697e3b
commit
2da2da54f8
1 changed files with 2 additions and 2 deletions
|
@ -111,13 +111,13 @@ class LinuxVirtual(Virtual):
|
|||
virtual_facts['virtualization_type'] = 'virtualbox'
|
||||
return virtual_facts
|
||||
|
||||
if bios_vendor in ('Amazon EC2', 'Hetzner'):
|
||||
if bios_vendor in ('Amazon EC2', 'DigitalOcean', 'Hetzner'):
|
||||
virtual_facts['virtualization_type'] = 'kvm'
|
||||
return virtual_facts
|
||||
|
||||
sys_vendor = get_file_content('/sys/devices/virtual/dmi/id/sys_vendor')
|
||||
|
||||
KVM_SYS_VENDORS = ('QEMU', 'oVirt', 'Amazon EC2', 'Google', 'Scaleway')
|
||||
KVM_SYS_VENDORS = ('QEMU', 'oVirt', 'Amazon EC2', 'DigitalOcean', 'Google', 'Scaleway')
|
||||
if sys_vendor in KVM_SYS_VENDORS:
|
||||
virtual_facts['virtualization_type'] = 'kvm'
|
||||
return virtual_facts
|
||||
|
|
Loading…
Reference in a new issue