1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

dont erase previous nameservers in fact gathering

fixes #14806
This commit is contained in:
Brian Coca 2016-03-04 11:34:01 -05:00
parent 89569d035e
commit 27a33a6f18

View file

@ -764,7 +764,8 @@ class Facts(object):
if len(tokens) == 0:
continue
if tokens[0] == 'nameserver':
self.facts['dns']['nameservers'] = []
if not 'nameservers' in self.facts['dns']:
self.facts['dns']['nameservers'] = []
for nameserver in tokens[1:]:
self.facts['dns']['nameservers'].append(nameserver)
elif tokens[0] == 'domain':