diff --git a/inventory_provider/snmp.py b/inventory_provider/snmp.py index 6ca9e170af839f09295fbe7d03a5e650469598c0..ded726e74bbe26357a6a3187e1b8f0b60ce1cd06 100644 --- a/inventory_provider/snmp.py +++ b/inventory_provider/snmp.py @@ -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 '?')