diff options
author | Ilya Etingof <etingof@gmail.com> | 2019-08-04 12:16:27 +0200 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2019-08-05 09:22:45 +0200 |
commit | 17a63974eb7df7eb47f822f32a05afd1081b8c06 (patch) | |
tree | 9991c89dc97c92c759d3770b547482dbda2f470b /pysnmp/smi | |
parent | 9d6c7b5e44a7ec728ac9990a19edd13a61cc70d1 (diff) | |
download | pysnmp-git-17a63974eb7df7eb47f822f32a05afd1081b8c06.tar.gz |
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.
Diffstat (limited to 'pysnmp/smi')
-rw-r--r-- | pysnmp/smi/builder.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |