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

Fix policy handling if not set

This commit is contained in:
Jarrod Johnson 2017-08-24 16:34:57 -04:00
parent 19f75474fc
commit 312af72d9f

View File

@ -707,6 +707,8 @@ def discover_node(cfg, handler, info, nodename, manual):
'pubkeys.tls_hardwaremanager'))
policy = dp.get(nodename, {}).get('discovery.policy', {}).get(
'value', None)
if policy is None:
policy = ''
policies = set(policy.split(','))
lastfp = dp.get(nodename, {}).get('pubkeys.tls_hardwaremanager',
{}).get('value', None)