2
0
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:
Jarrod Johnson 2020-05-19 14:45:06 -04:00
parent ebd41d3e53
commit eec7236110
2 changed files with 3 additions and 3 deletions

View File

@ -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',
},
}

View File

@ -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'