mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Have a fallback height of 1 for any missing height
This commit is contained in:
parent
39c00323b3
commit
4d63908164
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user