2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-04-12 11:51:30 +00:00

Restore error message on chassis without location information.

This commit is contained in:
Jarrod Johnson
2025-05-06 15:31:03 -04:00
parent ca3a53fde4
commit 5b1492fed8

View File

@@ -131,6 +131,8 @@ def retrieve(nodes, element, configmanager, inputdata):
enclosuremap[needcoord[node]]['coordinates'][node] = kvp[node]['slotcoord']
del needcoord[node]
for enclosure in enclosuremap:
if enclosure not in allnodedata:
continue
if 'slots' not in allnodedata[enclosure]:
# if slots not described by chassis, assume a double-wide form factor
allnodedata[enclosure]['slots'] = [2, allnodedata[enclosure]['height']]