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:
@@ -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']]
|
||||
|
||||
Reference in New Issue
Block a user