Add Amazon EC2 to virtual machines

This commit is contained in:
Sylvain Rabot 2022-08-08 15:11:42 +02:00 committed by GitHub
commit e3b9f33ae7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ def is_vm(dmi):
if 'Hyper-V' in bios[0]['Version'] or \ if 'Hyper-V' in bios[0]['Version'] or \
'Xen' in bios[0]['Version'] or \ 'Xen' in bios[0]['Version'] or \
'Google Compute Engine' in system[0]['Product Name'] or \ 'Google Compute Engine' in system[0]['Product Name'] or \
('Amazon EC2' in system[0]['Manufacturer'] and not system[0]['Product Name'].endswith('.metal')) or \
'RHEV Hypervisor' in system[0]['Product Name'] or \ 'RHEV Hypervisor' in system[0]['Product Name'] or \
'QEMU' in system[0]['Manufacturer'] or \ 'QEMU' in system[0]['Manufacturer'] or \
'VirtualBox' in bios[0]['Version'] or \ 'VirtualBox' in bios[0]['Version'] or \