Momo, prise peut tre un entier.
darcs-hash:20041013225540-41617-5c75fef22babc88cf2219e7f958b0320d8b9c1ec.gz
This commit is contained in:
parent
d7816ef5f1
commit
f0fb450beb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue