On souligne le fait qu'il y a un problème quand le dns du switch est faux.
This commit is contained in:
parent
2b125377d0
commit
93e04c2c9f
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue