Ragnarok n'a pas l'air d'avoir besoin d'un traitement spcial finalement
darcs-hash:20060307101326-d1718-d3ec68d9b4a3e22e56202ccacf0ff97f9ccfce2f.gz
This commit is contained in:
parent
5cb15e8abe
commit
bf028a8db3
1 changed files with 0 additions and 17 deletions
|
@ -35,23 +35,6 @@ def HostStatus (host) :
|
||||||
|
|
||||||
f = open('%s/%s' % (statusfolder,host) )
|
f = open('%s/%s' % (statusfolder,host) )
|
||||||
|
|
||||||
# ragnarok a un traitement spécial
|
|
||||||
##################################
|
|
||||||
if host == 'ragnarok' :
|
|
||||||
for line in f.readlines()[2:] :
|
|
||||||
# on éclate la ligne qui est au format :
|
|
||||||
# Device 'fs/' accessible
|
|
||||||
[Type, Nom, Etat] = sre.split(' *',line.strip().replace("'",""))
|
|
||||||
|
|
||||||
# ajout du type s'il n'est pas dedans
|
|
||||||
if not status.has_key(Type) :
|
|
||||||
status[Type] = {}
|
|
||||||
|
|
||||||
# on ajoute les données
|
|
||||||
status[Type][Nom] = {'status':Etat}
|
|
||||||
|
|
||||||
return status
|
|
||||||
|
|
||||||
# c'est un hote sous Debian
|
# c'est un hote sous Debian
|
||||||
###########################
|
###########################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue