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

Fix prefix fixup

It was not allowing same label across nodes.
This commit is contained in:
Jarrod Johnson 2018-09-10 15:09:50 -04:00
parent db5f861dc5
commit 7c550bd68e

View File

@ -131,10 +131,10 @@ try:
for inv in res['databynode'][node]['inventory']:
prefix = inv['name']
idx = 2
while prefix in usedprefixes:
while (node, prefix) in usedprefixes:
prefix = '{0} {1}'.format(inv['name'], idx)
idx += 1
usedprefixes.add(prefix)
usedprefixes.add((node, prefix))
if not inv['present']:
if not filters:
if options.json: