Fix bug in setting dns servers

We are adding the full list of ips in each entry, instead
of adding the item of the iteration.

Change-Id: Ib09abad83669b93f1bb9116686451e47280bd108
Fixes-Bug: #1719864
This commit is contained in:
Yolanda Robla 2017-09-28 13:14:05 +02:00
parent 50b7cd4c70
commit 71a794949a

View File

@ -127,7 +127,7 @@ def main():
for item in module.params['ipv4_nameserver']: for item in module.params['ipv4_nameserver']:
services.append({ services.append({
'type': 'dns', 'type': 'dns',
'address': module.params['ipv4_nameserver'] 'address': item
}) })
network_metadata = { network_metadata = {