mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-27 19:37:57 +00:00
Rename dns server attribute
This commit is contained in:
parent
ebd41d3e53
commit
eec7236110
@ -491,7 +491,7 @@ node = {
|
||||
'description': ('Fingerprint of the SSH key of the OS running on the '
|
||||
'system.'),
|
||||
},
|
||||
'services.dns': {
|
||||
'dns.servers': {
|
||||
'description': 'DNS Server or servers to provide to node',
|
||||
},
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ def handle_request(env, start_response):
|
||||
ncfg['keymap'] = keymap
|
||||
ncfg['nameservers'] = []
|
||||
for dns in deployinfo.get(
|
||||
'services.dns', {}).get('value', '').split(','):
|
||||
'dns.servers', {}).get('value', '').split(','):
|
||||
ncfg['nameservers'].append(dns)
|
||||
start_response('200 OK', (('Content-Type', retype),))
|
||||
yield dumper(ncfg)
|
||||
@ -160,4 +160,4 @@ def handle_request(env, start_response):
|
||||
yield 'No pending profile detected, unable to accept status update'
|
||||
else:
|
||||
start_response('404 Not Found', ())
|
||||
yield 'Not found'
|
||||
yield 'Not found'
|
||||
|
Loading…
x
Reference in New Issue
Block a user