summaryrefslogtreecommitdiff
path: root/scripts/cli
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-09 15:46:22 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-09 15:46:22 +0100
commit3f739f8e55f80948aebebf1f89f0ef49b0c14447 (patch)
tree055831988c1f63b41cb4cb066a863b27d9154a52 /scripts/cli
parent0ffc1fa39944a202dc8cfd1a77a2493e59c84755 (diff)
downloadvyos-1x-3f739f8e55f80948aebebf1f89f0ef49b0c14447.tar.gz
vyos-1x-3f739f8e55f80948aebebf1f89f0ef49b0c14447.zip
snmp: only import read_file from vyos.util
Diffstat (limited to 'scripts/cli')
-rwxr-xr-xscripts/cli/test_service_snmp.py4
1 files changed, 2 insertions, 2 deletions
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):