diff --git a/gestion/annuaires.py b/gestion/annuaires.py index cd38809c..4bb4416c 100755 --- a/gestion/annuaires.py +++ b/gestion/annuaires.py @@ -512,7 +512,7 @@ def all_switchs(bat=None): dup = map(lambda x: x[0], reverse(b).keys()) # dup contient des elements en double for n in list(dict(zip(dup,[None]*len(dup)))): - switchs.append("bat%s-%s" % (b, n)) + switchs.append("bat%s-%s.adm.crans.org" % (b, n)) switchs.sort() return switchs diff --git a/gestion/hptools.py b/gestion/hptools.py index e4a10261..bea51538 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -350,7 +350,7 @@ class sw_chbre(hpswitch) : bat = chbre[0].lower() prise = chbre_prises[bat][chbre[1:]] self.prise_brute = prise - self.switch = 'bat%s' % bat + self.switch = 'bat%s.adm.crans.org' % bat num_switch = int(prise[0]) self.switch += '-%i' % num_switch if prise[-1] == '-' :