summaryrefslogtreecommitdiff
path: root/scripts/cli/test_system_nameserver.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-01-24 14:03:45 +0100
committerChristian Poessinger <christian@poessinger.com>2020-01-24 14:03:45 +0100
commita7cd2bc683ca03ab2787879d3db06e8d5d3fd5ca (patch)
treef5184a6e0c5fd0fb130b00acf74ff70102dad1fb /scripts/cli/test_system_nameserver.py
parent47c8f35dd476d2730aad3990e63240af1c7027cf (diff)
downloadvyos-1x-a7cd2bc683ca03ab2787879d3db06e8d5d3fd5ca.tar.gz
vyos-1x-a7cd2bc683ca03ab2787879d3db06e8d5d3fd5ca.zip
nameserver: fix indent
Diffstat (limited to 'scripts/cli/test_system_nameserver.py')
-rwxr-xr-xscripts/cli/test_system_nameserver.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/cli/test_system_nameserver.py b/scripts/cli/test_system_nameserver.py
index cab867983..a07ad31ad 100755
--- a/scripts/cli/test_system_nameserver.py
+++ b/scripts/cli/test_system_nameserver.py
@@ -25,13 +25,11 @@ import vyos.util as util
RESOLV_CONF = '/etc/resolv.conf'
test_servers = ['192.0.2.10', '2001:db8:1::100']
-
base_path = ['system', 'name-server']
-
def get_name_servers():
- resolv_conf = util.read_file(RESOLV_CONF)
- return re.findall(r'\n?nameserver\s+(.*)', resolv_conf)
+ resolv_conf = util.read_file(RESOLV_CONF)
+ return re.findall(r'\n?nameserver\s+(.*)', resolv_conf)
class TestSystemNameServer(unittest.TestCase):
def setUp(self):