2
0
mirror of https://opendev.org/x/pyghmi synced 2025-08-21 18:40:20 +00:00

Add the bay number for dense Lenovo platform

The dense platform offers the bay in a property.  Provide this
in a normalized way.

Change-Id: I60b1192260130d00852988b777776e81df7b8b66
This commit is contained in:
Jarrod Johnson
2018-02-26 10:59:34 -05:00
parent db696bf1fc
commit faa2cbcddc

View File

@@ -413,7 +413,11 @@ class IMMClient(object):
hwmap = {}
enclosureuuid = self.get_property('/v2/ibmc/smm/chassis/uuid')
if enclosureuuid:
hwmap['Enclosure'] = {'UUID': fixup_uuid(enclosureuuid)}
bay = self.get_property('/v2/cmm/sp/7')
hwmap['Enclosure'] = {
'UUID': fixup_uuid(enclosureuuid),
'Bay': bay,
}
adapterdata = self.get_cached_data('lenovo_cached_adapters')
if not adapterdata:
if self.updating: