From 79a08359aec938214e5e0d5c4151d70e0ecf5cdd Mon Sep 17 00:00:00 2001 From: Sylvain Rabot Date: Mon, 8 Aug 2022 15:37:13 +0200 Subject: [PATCH] Add Amazon EC2 to virtual machines (#236) --- netbox_agent/virtualmachine.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox_agent/virtualmachine.py b/netbox_agent/virtualmachine.py index f86c082..db2cdb0 100644 --- a/netbox_agent/virtualmachine.py +++ b/netbox_agent/virtualmachine.py @@ -16,6 +16,7 @@ def is_vm(dmi): if 'Hyper-V' in bios[0]['Version'] or \ 'Xen' in bios[0]['Version'] 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 \ 'QEMU' in system[0]['Manufacturer'] or \ 'VirtualBox' in bios[0]['Version'] or \