2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 11:01:09 +00:00

Have a fallback height of 1 for any missing height

This commit is contained in:
Jarrod Johnson 2024-01-04 11:17:02 -05:00
parent 39c00323b3
commit 4d63908164

View File

@ -99,5 +99,8 @@ def retrieve(nodes, element, configmanager, inputdata):
kvp = rsp.kvpairs
for node in kvp:
allnodedata[node]['height'] = kvp[node]['height']
for node in allnodedata:
if 'height' not in allnodedata[node]:
allnodedata[node]['height'] = 1
yield msg.Generic(results)