From b2fb49b218e10071ccb3a02b78f941d49122f7cf Mon Sep 17 00:00:00 2001 From: elie Date: Fri, 14 Oct 2005 16:14:07 +0000 Subject: cbFun() takes 3 args --- examples/v3arch/agent/ntforg.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/v3arch/agent/ntforg.py b/examples/v3arch/agent/ntforg.py index 508e665..bbb08f3 100644 --- a/examples/v3arch/agent/ntforg.py +++ b/examples/v3arch/agent/ntforg.py @@ -47,7 +47,7 @@ config.addTrapUser(snmpEngine, 3, 'test-user', 'authPriv', (1,3,6)) # v3 # SNMP context snmpContext = context.SnmpContext(snmpEngine) -def cbFun(snmpEngine, errorIndication): +def cbFun(snmpEngine, errorIndication, cbCtx): if errorIndication: print errorIndication @@ -59,6 +59,5 @@ errorIndication = ntforg.NotificationOriginator(snmpContext).sendNotification( if errorIndication: print errorIndication - return - -snmpEngine.transportDispatcher.runDispatcher() +else: + snmpEngine.transportDispatcher.runDispatcher() -- cgit v1.2.1