Skip to content
Snippets Groups Projects
Commit f6f2ea9c authored by Robert Latta's avatar Robert Latta
Browse files

added hostname to error message

parent a5fe9122
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@ def walk(agent_hostname, community, base_oid): # pragma: no cover
# cf. http://snmplabs.com/
# pysnmp/examples/hlapi/asyncore/sync/contents.html
assert not engineErrorIndication, (
'snmp response engine error indication: %r'
% str(engineErrorIndication))
f'snmp response engine error indication: '
f'{str(engineErrorIndication)} - {agent_hostname}')
assert not pduErrorIndication, 'snmp response pdu error %r at %r' % (
pduErrorIndication,
errorIndex and varBinds[int(errorIndex) - 1][0] or '?')
......
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