Fixed some typos in arguments with previous commit
parent
7023d87738
commit
d27e528dd2
|
@ -23,7 +23,7 @@ from pysnmp.hlapi.twisted import *
|
|||
|
||||
|
||||
def success(args, hostname):
|
||||
(errorStatus, errorIndex, varBindTable) = args
|
||||
(errorStatus, errorIndex, varBinds) = args
|
||||
|
||||
if errorStatus:
|
||||
print('%s: %s at %s' % (hostname,
|
||||
|
|
|
@ -317,7 +317,7 @@ def nextCmd(snmpEngine, authData, transportTarget, contextData,
|
|||
>>> from pysnmp.hlapi.twisted import *
|
||||
>>>
|
||||
>>> def success(args):
|
||||
... (errorStatus, errorIndex, varBinds) = args
|
||||
... (errorStatus, errorIndex, varBindTable) = args
|
||||
... print(errorStatus, errorIndex, varBindTable)
|
||||
...
|
||||
>>> def failure(errorIndication):
|
||||
|
@ -443,7 +443,7 @@ def bulkCmd(snmpEngine, authData, transportTarget, contextData,
|
|||
>>> from pysnmp.hlapi.twisted import *
|
||||
>>>
|
||||
>>> def success(args):
|
||||
... (errorStatus, errorIndex, varBinds) = args
|
||||
... (errorStatus, errorIndex, varBindTable) = args
|
||||
... print(errorStatus, errorIndex, varBindTable)
|
||||
...
|
||||
>>> def failure(errorIndication):
|
||||
|
|
Loading…
Reference in New Issue