Commit 5d1af19c authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'fix-avs-snmp-noc-such-oids-varbinds' into 'master'

Fix error when empty varbinds on NO_SUCH_NAME SNMP error.

See merge request !6597
parents 9fa87783 e9b5da3a
......@@ -112,7 +112,7 @@ async def snmp_get(
result = resp.varbinds[0][1]
logger.debug("[%s] GET result: %r", address, result)
return result
elif resp.error_status == NO_SUCH_NAME and len(oids) > 1:
elif resp.error_status == NO_SUCH_NAME and resp.varbinds and len(oids) > 1:
# One or more invalid oids
b_idx = resp.error_index - 1
logger.debug(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment