2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-29 00:31:09 +00:00

Only log on real discovery

Was logging on storing already discovered nodes, fix the mistake.
This commit is contained in:
Jarrod Johnson
2017-03-18 14:24:30 -04:00
parent b57dbcd89b
commit 0336a07f17
+1 -1
View File
@@ -375,8 +375,8 @@ def discover_node(cfg, handler, info, nodename):
util.get_fingerprint(handler.https_cert)
if newnodeattribs:
cfg.set_node_attributes({nodename: newnodeattribs})
log.log({'info': 'Discovered {0}'.format(nodename)})
known_nodes[nodename] = info
log.log({'info': 'Discovered {0}'.format(nodename)})
return True
log.log({'info': 'Detected {0}, but discovery.policy is not set to a '
'value allowing discovery (open or permissive)'.format(