Skip to content
Snippets Groups Projects
Commit 0308a67b authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

test dns: contract

parent 08ab7b61
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,7 @@ def get_dns_servers():
if servers == ['127.0.1.1']:
# NetworkManager
status, output = subprocess.getstatusoutput('nmcli -f all device show | grep IP4.DNS | awk \'{ print $2 }\'')
for l in output.split('\n'):
servers.append(l)
servers.extend(output.split('\n'))
return servers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment