diff --git a/gestion/hptools.py b/gestion/hptools.py index 2e7d5713..cfcfb4a4 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -147,7 +147,7 @@ class snmp : if type=="STRING": return var[1:-1] elif type=="Hex-STRING": - return var.replace(" ","").decode("hex") + return var.replace(" ","").replace("\n", "").decode("hex") elif type=="INTEGER": return unicode(var) else: