Ajout de batv-0 aux switches ignorés par all_switchs.

This commit is contained in:
Pierre-Elliott Bécue 2015-02-19 11:12:46 +01:00
parent 0411b3d986
commit 48573c47d4

View file

@ -292,6 +292,7 @@ _SPECIAL_SWITCHES=['backbone.adm.crans.org',
'batk-0.crans.org', 'batk-0.crans.org',
'batp-4.adm.crans.org', 'batp-4.adm.crans.org',
'minigiga.adm.crans.org', 'minigiga.adm.crans.org',
'batv-0.adm.crans.org',
] ]
def all_switchs(bat=None, hide=_SPECIAL_SWITCHES): def all_switchs(bat=None, hide=_SPECIAL_SWITCHES):
@ -303,7 +304,7 @@ def all_switchs(bat=None, hide=_SPECIAL_SWITCHES):
simplement batx""" simplement batx"""
if bat == None: if bat == None:
bat = bat_switchs bat = list(bat_switchs)
if type(bat) not in [ tuple, list ] : if type(bat) not in [ tuple, list ] :
bat = [bat] bat = [bat]
switchs = [] switchs = []