Bug
darcs-hash:20050617213956-41617-f68628fdc9667733950576d9fe14a7fed0b41269.gz
This commit is contained in:
parent
a7e470416b
commit
22127c8403
1 changed files with 1 additions and 3 deletions
|
@ -350,9 +350,7 @@ class sw_chbre(hpswitch) :
|
||||||
bat = chbre[0].lower()
|
bat = chbre[0].lower()
|
||||||
prise = chbre_prises[bat][chbre[1:]]
|
prise = chbre_prises[bat][chbre[1:]]
|
||||||
self.prise_brute = prise
|
self.prise_brute = prise
|
||||||
self.switch = 'bat%s.adm.crans.org' % bat
|
self.switch = 'bat%s-%i.adm.crans.org' % (bat , int(prise[0]) )
|
||||||
num_switch = int(prise[0])
|
|
||||||
self.switch += '-%i' % num_switch
|
|
||||||
if prise[-1] == '-' :
|
if prise[-1] == '-' :
|
||||||
#Prise en 10
|
#Prise en 10
|
||||||
self.prise = int(prise[1:-1])
|
self.prise = int(prise[1:-1])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue