From 3f739f8e55f80948aebebf1f89f0ef49b0c14447 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 9 Feb 2020 15:46:22 +0100 Subject: snmp: only import read_file from vyos.util --- scripts/cli/test_service_snmp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/cli/test_service_snmp.py b/scripts/cli/test_service_snmp.py index e9d04a1ae..72f338e31 100755 --- a/scripts/cli/test_service_snmp.py +++ b/scripts/cli/test_service_snmp.py @@ -23,13 +23,13 @@ from psutil import process_iter from vyos.config import Config from vyos.configsession import ConfigSession, ConfigSessionError -import vyos.util as util +from vyos.util import read_file SNMPD_CONF = '/etc/snmp/snmpd.conf' base_path = ['service', 'snmp'] def get_config_value(key): - tmp = util.read_file(SNMPD_CONF) + tmp = read_file(SNMPD_CONF) return re.findall(r'\n?{}\s+(.*)'.format(key), tmp) class TestSNMPService(unittest.TestCase): -- cgit v1.2.3