Skip to content
Snippets Groups Projects
Commit bdd58902 authored by Erik Reid's avatar Erik Reid
Browse files

fixed error check condition

parent cd83066e
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ def walk(agent_hostname, community, base_oid): # pragma: no cover
'snmp response pdu error %r at %r' % (
pduErrorIndication,
errorIndex and varBinds[int(errorIndex) - 1][0] or '?'))
if errorIndex == 0:
if errorIndex != 0:
raise SNMPWalkError(
'sanity failure: errorIndex != 0, '
'but no error indication')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment