summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2019-02-26 22:00:21 +0100
committerIlya Etingof <etingof@gmail.com>2019-02-26 22:00:21 +0100
commit7c71fc46d4b949bdbfd425f75d3ef667df96846d (patch)
treec464b47782319cb99bb2683700a619b0eb8ba1ff
parentb186168d5b47c74c1d20e80939d3e22e561fe2cf (diff)
downloadpysnmp-git-7c71fc46d4b949bdbfd425f75d3ef667df96846d.tar.gz
Fix missing variable references in SMI instrumentation
-rw-r--r--pysnmp/smi/mibs/SNMPv2-SMI.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pysnmp/smi/mibs/SNMPv2-SMI.py b/pysnmp/smi/mibs/SNMPv2-SMI.py
index 40ac6198..35e24635 100644
--- a/pysnmp/smi/mibs/SNMPv2-SMI.py
+++ b/pysnmp/smi/mibs/SNMPv2-SMI.py
@@ -743,6 +743,8 @@ class ManagedMibObject(ObjectType):
In case of an error, the `error` key in the `context` dict will contain
an exception object.
"""
+ name, val = varBind
+
(debug.logger & debug.FLAG_INS and
debug.logger('%s: readTestNext(%s, %r)' % (self, name, val)))
@@ -788,6 +790,8 @@ class ManagedMibObject(ObjectType):
In case of an error, the `error` key in the `context` dict will contain
an exception object.
"""
+ name, val = varBind
+
(debug.logger & debug.FLAG_INS and
debug.logger('%s: readGetNext(%s, %r)' % (self, name, val)))