From c1a847a177cbbc84f3b05f0ee2df9f7312d5556d Mon Sep 17 00:00:00 2001 From: Cyril Levis Date: Tue, 25 Aug 2020 11:36:15 +0200 Subject: [PATCH] Add "ProLiant BL460c Gen10 Graphics Exp" --- README.md | 1 + netbox_agent/vendors/hp.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e6adf4..f0be25c 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ Tested on: * HP ProLiant BL460c Gen8 * HP ProLiant BL460c Gen9 * HP ProLiant BL460c Gen10 +* HP ProLiant BL460c Gen10 Graphics Exp * HP Moonshot 1500 Enclosure (your `DeviceType` should have slots batch create with `Bay c[1-45n1]`) with HP ProLiant m750, m710x, m510 Server Cartridge ### Pizzas diff --git a/netbox_agent/vendors/hp.py b/netbox_agent/vendors/hp.py index 23885f2..ba002e0 100644 --- a/netbox_agent/vendors/hp.py +++ b/netbox_agent/vendors/hp.py @@ -27,7 +27,7 @@ class HPHost(ServerBase): # FIXME: make a dmidecode function get_by_dminame() ? if self.is_blade(): locator = dmidecode.get_by_type(self.dmi, 204) - if self.product == "ProLiant BL460c Gen10": + if self.product.startswith("ProLiant BL460c Gen10"): locator = locator[0]["Strings"] return { "Enclosure Model": locator[2].strip(),