mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 20:54:24 -07:00
parent
051b9e7b90
commit
f3b9449e07
1 changed files with 9 additions and 7 deletions
|
@ -770,6 +770,7 @@ class Facts(object):
|
||||||
for nameserver in tokens[1:]:
|
for nameserver in tokens[1:]:
|
||||||
self.facts['dns']['nameservers'].append(nameserver)
|
self.facts['dns']['nameservers'].append(nameserver)
|
||||||
elif tokens[0] == 'domain':
|
elif tokens[0] == 'domain':
|
||||||
|
if len(tokens) > 1:
|
||||||
self.facts['dns']['domain'] = tokens[1]
|
self.facts['dns']['domain'] = tokens[1]
|
||||||
elif tokens[0] == 'search':
|
elif tokens[0] == 'search':
|
||||||
self.facts['dns']['search'] = []
|
self.facts['dns']['search'] = []
|
||||||
|
@ -781,6 +782,7 @@ class Facts(object):
|
||||||
self.facts['dns']['sortlist'].append(address)
|
self.facts['dns']['sortlist'].append(address)
|
||||||
elif tokens[0] == 'options':
|
elif tokens[0] == 'options':
|
||||||
self.facts['dns']['options'] = {}
|
self.facts['dns']['options'] = {}
|
||||||
|
if len(tokens) > 1:
|
||||||
for option in tokens[1:]:
|
for option in tokens[1:]:
|
||||||
option_tokens = option.split(':', 1)
|
option_tokens = option.split(':', 1)
|
||||||
if len(option_tokens) == 0:
|
if len(option_tokens) == 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue