On souligne le fait qu'il y a un problème quand le dns du switch est faux.

This commit is contained in:
Pierre-Elliott Bécue 2015-04-27 16:24:39 +02:00
parent 2b125377d0
commit 93e04c2c9f

View file

@ -57,7 +57,7 @@ def prise_etat(chbre):
try: try:
switch = hptools2.HPSwitch(switch_name) switch = hptools2.HPSwitch(switch_name)
except hptools2.SwitchNotFound: except hptools2.SwitchNotFound:
return style(u"Chambre inconnue", "violet") return style(u"Meh, le switch %s ne répond pas ou n'existe pas." % (switch_name,), "violet")
vlan_list = switch.get_vlans(port) vlan_list = switch.get_vlans(port)
vlans = u" " * (13 + len(chbre)) vlans = u" " * (13 + len(chbre))