Add "ProLiant BL460c Gen10 Graphics Exp" support and GPU expansion bay #165

Merged
cyrinux merged 5 commits from add_hp_proliant_bl460_cgen10_Graphics_exp into master 2020-09-18 12:29:17 +02:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit c1a847a177 - Show all commits

View file

@ -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

View file

@ -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(),