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