2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-14 11:48:33 +00:00

Merge "Add the bay number for dense Lenovo platform"

This commit is contained in:
Zuul 2018-02-26 17:38:53 +00:00 committed by Gerrit Code Review
commit d30e52f15f

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: