From 17a63974eb7df7eb47f822f32a05afd1081b8c06 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Sun, 4 Aug 2019 12:16:27 +0200 Subject: Do not store incomplete USM keys and improve debug This adds details debugging on USM initial configuration process and runtime USM user cloning. Besides that, this patch eliminates storing of incomplete USM keys (in case when master/localized keys are configured directly). On top of that, this commit fixes a bug in USM configuration which did not allow the same user names to be added under different security names. --- pysnmp/smi/builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pysnmp/smi') diff --git a/pysnmp/smi/builder.py b/pysnmp/smi/builder.py index da03764d..0a3a6a1c 100644 --- a/pysnmp/smi/builder.py +++ b/pysnmp/smi/builder.py @@ -100,8 +100,10 @@ class __AbstractMibSource(object): for pycSfx in BYTECODE_SUFFIXES: + pycFile = f + pycSfx + try: - pycData, pycPath = self._getData(f + pycSfx, 'rb') + pycData, pycPath = self._getData(pycFile, 'rb') except IOError as exc: if ENOENT == -1 or exc.errno == ENOENT: -- cgit v1.2.1