From c78db90166eea3a4421cd275b6869a72c4be0206 Mon Sep 17 00:00:00 2001
From: Nicolas KAROLAK <nicolas@karolak.fr>
Date: Tue, 15 Oct 2019 17:23:55 +0000
Subject: [PATCH] fix systemd output parsing

---
 tests/test_dns_records.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test_dns_records.py b/tests/test_dns_records.py
index 62a6d6bc..ad8358c7 100755
--- a/tests/test_dns_records.py
+++ b/tests/test_dns_records.py
@@ -17,6 +17,8 @@ from envsetup import utils as u  # noqa: E402
 
 
 def get_dns_servers() -> set:
+    servers = list()
+
     if subprocess.getstatusoutput("command -v nmcli")[0] == 0:
         # network-manager
         _, output = subprocess.getstatusoutput(
@@ -32,7 +34,7 @@ def get_dns_servers() -> set:
 
     if "127.0.0.53" in servers:
         # systemd-resolved
-        servers = list()
+        servers.remove("127.0.0.53")
         _, output = subprocess.getstatusoutput("systemd-resolve --status")
         lines = [l.strip() for l in output.split("\n")]
         dns_line = False
-- 
GitLab