From 9e484d801bf395e6ecd796f42b3eec9e2272f8fb Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Mon, 25 Feb 2019 09:19:53 +0100 Subject: Fix variable reference in hlapi/v1arch/ntforg --- pysnmp/hlapi/v1arch/asyncore/ntforg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pysnmp') diff --git a/pysnmp/hlapi/v1arch/asyncore/ntforg.py b/pysnmp/hlapi/v1arch/asyncore/ntforg.py index b532184a..0e0f61d4 100644 --- a/pysnmp/hlapi/v1arch/asyncore/ntforg.py +++ b/pysnmp/hlapi/v1arch/asyncore/ntforg.py @@ -160,7 +160,7 @@ def sendNotification(snmpDispatcher, authData, transportTarget, return if errorIndication: - cbFun(errorIndication, pMod.Integer(0), pMod.Integer(0), None, + cbFun(errorIndication, v2c.Integer(0), v2c.Integer(0), None, cbCtx=cbCtx, snmpDispatcher=snmpDispatcher, stateHandle=stateHandle) return @@ -172,7 +172,7 @@ def sendNotification(snmpDispatcher, authData, transportTarget, if lookupMib: varBinds = VB_PROCESSOR.unmakeVarBinds(snmpDispatcher.cache, varBinds) - nextStateHandle = pMod.getNextRequestID() + nextStateHandle = v2c.getNextRequestID() nextVarBinds = cbFun(errorIndication, errorStatus, errorIndex, varBinds, cbCtx=cbCtx, -- cgit v1.2.1