From bf028a8db39e99b72dfbe40cbd35c35f49b00504 Mon Sep 17 00:00:00 2001 From: bernat Date: Tue, 7 Mar 2006 11:13:26 +0100 Subject: [PATCH] Ragnarok n'a pas l'air d'avoir besoin d'un traitement spcial finalement darcs-hash:20060307101326-d1718-d3ec68d9b4a3e22e56202ccacf0ff97f9ccfce2f.gz --- wiki/macro/MonitStatus.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/wiki/macro/MonitStatus.py b/wiki/macro/MonitStatus.py index 9fb673ce..11d293cd 100644 --- a/wiki/macro/MonitStatus.py +++ b/wiki/macro/MonitStatus.py @@ -35,23 +35,6 @@ def HostStatus (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 ###########################