Fix virt role detection for Hetzner cloud servers (#42023)

See also https://wiki.hetzner.de/index.php/CloudServer/en
pull/49092/head
Julian Kornberger 6 years ago committed by John R Barker
parent 4b1b0bcbb6
commit 859b6a6526

@ -114,7 +114,7 @@ class LinuxVirtual(Virtual):
virtual_facts['virtualization_role'] = 'guest' virtual_facts['virtualization_role'] = 'guest'
return virtual_facts return virtual_facts
if bios_vendor == 'Amazon EC2': if bios_vendor in ['Amazon EC2', 'Hetzner']:
virtual_facts['virtualization_type'] = 'kvm' virtual_facts['virtualization_type'] = 'kvm'
virtual_facts['virtualization_role'] = 'guest' virtual_facts['virtualization_role'] = 'guest'
return virtual_facts return virtual_facts

Loading…
Cancel
Save