darcs-hash:20050617213956-41617-f68628fdc9667733950576d9fe14a7fed0b41269.gz
This commit is contained in:
pauget 2005-06-17 23:39:56 +02:00
parent a7e470416b
commit 22127c8403

View file

@ -350,9 +350,7 @@ class sw_chbre(hpswitch) :
bat = chbre[0].lower()
prise = chbre_prises[bat][chbre[1:]]
self.prise_brute = prise
self.switch = 'bat%s.adm.crans.org' % bat
num_switch = int(prise[0])
self.switch += '-%i' % num_switch
self.switch = 'bat%s-%i.adm.crans.org' % (bat , int(prise[0]) )
if prise[-1] == '-' :
#Prise en 10
self.prise = int(prise[1:-1])