2
0
mirror of https://opendev.org/x/pyghmi synced 2026-01-11 10:42:32 +00:00

Fix SMMv3 model disploy in inventory

Change-Id: I41d6e2f5e37465085ad0d57e042d65bdbdbfd4be
This commit is contained in:
Jarrod Johnson
2025-02-26 15:36:52 -05:00
parent 94693b705e
commit dbeb5e0893

View File

@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import copy
import os
import pyghmi.redfish.oem.generic as generic
import pyghmi.constants as pygconst
@@ -115,9 +116,10 @@ class OEMHandler(generic.OEMHandler):
if len(chassismembs) == 1:
chassisurl = chassismembs[0]['@odata.id']
nodeinfo = self._do_web_request(chassisurl)
nodeinfo['SKU'] = nodeinfo['Model']
nodeinfo['Model'] = 'N1380 Enclosure'
return nodeinfo
newnodeinfo = copy.deepcopy(nodeinfo)
newnodeinfo['SKU'] = nodeinfo['Model']
newnodeinfo['Model'] = 'N1380 Enclosure'
return newnodeinfo
def reseat_bay(self, bay):
bayid = _baytolabel(bay)