diff --git a/gestion/hptools.py b/gestion/hptools.py index 9e647e4b..46566018 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -192,7 +192,7 @@ class hpswitch : if self.__debug : self.__logDest.write("HP DEBUG : show_prise_mac(prise=%s)\n" % prise) try: data = self.walk('STATISTICS-MIB::hpSwitchPortFdbAddress.%d' % int(prise)) - return map(lambda x:findall('".*"',":".join(x.lower().split(' ')))[0][1:-1],data.values()) + return map(lambda x:findall('".*"',":".join(x.lower().split(' ')))[0][1:-2],data.values()) except ValueError: # Pas de MAC trouvée return []