Merge pull request #3 from KivraChristoffer/origin/patch-1

Origin/patch 1
This commit is contained in:
Christoffer Nicklasson 2021-09-24 07:34:45 +02:00 committed by GitHub
commit 701b91fca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,8 @@ def is_vm(dmi):
'Google Compute Engine' in system[0]['Product Name'] or \ 'Google Compute Engine' in system[0]['Product Name'] or \
'RHEV Hypervisor' in system[0]['Product Name'] or \ 'RHEV Hypervisor' in system[0]['Product Name'] or \
'VirtualBox' in bios[0]['Version'] or \ 'VirtualBox' in bios[0]['Version'] or \
'VMware' in system[0]['Manufacturer']: 'VMware' in system[0]['Manufacturer']or \
'QEMU' in system[0]['Manufacturer']:
return True return True
return False return False