Skip to content

Commit

Permalink
Merge c77e665 into 3b46bb4
Browse files Browse the repository at this point in the history
  • Loading branch information
road-cycling committed Nov 15, 2019
2 parents 3b46bb4 + c77e665 commit b528b21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion yahoo_panoptes/framework/utilities/snmp/variable.py
Expand Up @@ -22,7 +22,12 @@ def __init__(self, queried_oid, oid, index, value, snmp_type):
self._snmp_type = snmp_type

def __repr__(self):
printable_value = strip_non_printable(self._value)

if hasattr(self.value, u'decode'):
printable_value = self.value.decode(u'ascii', u'backslashreplace')
else:
printable_value = self.value

return (
u"<{0} value={1} (oid={2}, index={3}, snmp_type={4})>".format(
self.__class__.__name__,
Expand Down

0 comments on commit b528b21

Please sign in to comment.