From 22127c8403d87da05ed5d264ad7b0ab1c1381e5e Mon Sep 17 00:00:00 2001 From: pauget Date: Fri, 17 Jun 2005 23:39:56 +0200 Subject: [PATCH] Bug darcs-hash:20050617213956-41617-f68628fdc9667733950576d9fe14a7fed0b41269.gz --- gestion/hptools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gestion/hptools.py b/gestion/hptools.py index 4b552256..22682d26 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -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])