diff options
author | elie <elie> | 2005-10-14 16:14:07 +0000 |
---|---|---|
committer | elie <elie> | 2005-10-14 16:14:07 +0000 |
commit | b2fb49b218e10071ccb3a02b78f941d49122f7cf (patch) | |
tree | f7c191cb508b8f17d6b8eaeddbc8c72a6d03a4d3 | |
parent | d1e7a25931f73d5acf41d89580355d29f1e7d977 (diff) | |
download | pysnmp-b2fb49b218e10071ccb3a02b78f941d49122f7cf.tar.gz |
cbFun() takes 3 args
-rw-r--r-- | examples/v3arch/agent/ntforg.py | 7 |
1 files 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() |