mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 19:40:12 +00:00
Fix mistakes in the draft discovery code
A couple of blatantly obvious mistakes were made that require fixing.
This commit is contained in:
parent
a80ae622f6
commit
8226c2bd77
@ -684,7 +684,7 @@ def get_chained_smm_name(nodename, cfg, handler, nl=None, checkswitch=True):
|
||||
cd = cfg.get_node_attributes(nodename, ['hardwaremanagement.manager',
|
||||
'pubkeys.tls_hardwaremanager'])
|
||||
smmaddr = cd[nodename]['hardwaremanagement.manager']['value']
|
||||
pkey = cd.get[nodename].get('pubkeys.tls_hardwaremanager', {}).get(
|
||||
pkey = cd[nodename].get('pubkeys.tls_hardwaremanager', {}).get(
|
||||
'value', None)
|
||||
if pkey:
|
||||
cv = util.TLSCertVerifier(
|
||||
|
@ -254,7 +254,9 @@ def find_nodeinfo_by_mac(mac, configmanager):
|
||||
if mac in _nodesbymac:
|
||||
return _nodesbymac[mac][0], {'maccount': _nodesbymac[mac][1]}
|
||||
# If update_mac bailed out, still check one last time
|
||||
return _nodesbymac.get(mac, (None, {'maccount': 0}))
|
||||
if mac in _nodesbymac:
|
||||
return _nodesbymac[mac][0], {'maccount': _nodesbymac[mac][1]}
|
||||
return None, {'maccount': 0}
|
||||
|
||||
|
||||
mapupdating = eventlet.semaphore.Semaphore()
|
||||
|
Loading…
Reference in New Issue
Block a user