on vrifie qu'il y a un comentaire avant de l'utiliser
on met les switch autre que ceux de batiment au dbut de la liste darcs-hash:20041112163216-4ec08-27f48d7ddc8609d6044bc4919039b61385acd470.gz
This commit is contained in:
parent
59043856ee
commit
c3c4431feb
1 changed files with 10 additions and 6 deletions
|
@ -144,13 +144,17 @@ class autostatus(gen_config) :
|
||||||
bornes[ "3-" + m.nom() ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , 'Inutilise' ]
|
bornes[ "3-" + m.nom() ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , 'Inutilise' ]
|
||||||
|
|
||||||
# les switchs
|
# les switchs
|
||||||
elif 'switch' in m.info()[0].lower() :
|
elif m.info() and 'switch' in m.info()[0].lower() :
|
||||||
|
|
||||||
# on convertit le bat# en bat#-0
|
# est ce que c'est un batiment
|
||||||
if not "-" in m.nom().split(".")[0] :
|
if 'bat' == m.nom()[0:3] :
|
||||||
index = m.nom().split(".")[0] + "-0"
|
# on convertit le bat# en bat#-0
|
||||||
|
if not "-" in m.nom().split(".")[0] :
|
||||||
|
index = m.nom().split(".")[0] + "-0"
|
||||||
|
else :
|
||||||
|
index = m.nom().split(".")[0]
|
||||||
else :
|
else :
|
||||||
index = m.nom().split(".")[0]
|
index = 'a' + m.nom().split(".")[0]
|
||||||
|
|
||||||
# on ajoute au dictionnaire
|
# on ajoute au dictionnaire
|
||||||
switchs[ index ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , m.info()[0] ]
|
switchs[ index ] = [ m.nom().split(".")[0] , m.nom() , 'none' , 'nobody' , m.info()[0] ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue