diff options
Diffstat (limited to 'examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py')
-rw-r--r-- | examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py b/examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py index e7c7c5fe..b2b245e6 100644 --- a/examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py +++ b/examples/hlapi/twisted/manager/cmdgen/pull-whole-mib.py @@ -19,7 +19,9 @@ from twisted.internet.task import react from pysnmp.hlapi.twisted import * -def success((errorStatus, errorIndex, varBindTable), reactor, snmpEngine): +def success(args, reactor, snmpEngine): + (errorStatus, errorIndex, varBindTable) = args + if errorStatus: print('%s: %s at %s' % (hostname, errorStatus.prettyPrint(), |