mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-26 19:10:30 +00:00
Fix behavior with unspecified domain name
Ensure string is only checked if it is a string.
This commit is contained in:
parent
92018c725f
commit
5f1ba49a12
@ -155,7 +155,7 @@ def handle_request(env, start_response):
|
||||
dnsinfo = cfg.get_node_attributes(nodename, ('dns.*'))
|
||||
dnsinfo = dnsinfo.get(nodename, {}).get('dns.domain', {}).get('value',
|
||||
None)
|
||||
if dnsinfo in nodename:
|
||||
if dnsinfo and dnsinfo in nodename:
|
||||
dnsinfo = ''
|
||||
cert = sshutil.sign_host_key(reqbody, nodename, [dnsinfo])
|
||||
start_response('200 OK', (('Content-Type', 'text/plain'),))
|
||||
|
Loading…
x
Reference in New Issue
Block a user