mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
89569d035e
commit
27a33a6f18
1 changed files with 2 additions and 1 deletions
|
@ -764,6 +764,7 @@ class Facts(object):
|
||||||
if len(tokens) == 0:
|
if len(tokens) == 0:
|
||||||
continue
|
continue
|
||||||
if tokens[0] == 'nameserver':
|
if tokens[0] == 'nameserver':
|
||||||
|
if not 'nameservers' in self.facts['dns']:
|
||||||
self.facts['dns']['nameservers'] = []
|
self.facts['dns']['nameservers'] = []
|
||||||
for nameserver in tokens[1:]:
|
for nameserver in tokens[1:]:
|
||||||
self.facts['dns']['nameservers'].append(nameserver)
|
self.facts['dns']['nameservers'].append(nameserver)
|
||||||
|
|
Loading…
Reference in a new issue