diff --git a/gestion/hptools.py b/gestion/hptools.py index 032b79bb..7cc1f538 100644 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -396,6 +396,7 @@ class hpswitch : def __is(self,oid,prise) : if not prise : prise = self.prise + prise = str(prise) if prise=='all' : nb = 0 for prise,etat in self.walk(oid).items() : @@ -403,7 +404,7 @@ class hpswitch : nb += 1 return nb prise = prise.replace('-','') - return self.get(oid + '.' + str(prise)) == 'up' + return self.get(oid + '.' + prise) == 'up' def is_enable(self,prise=0) : """ Retoune True ou False suivant si la prise est activée ou non