From 93e04c2c9fa2dd1e6114898c7bb538a6714b470f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Mon, 27 Apr 2015 16:24:39 +0200 Subject: [PATCH] =?UTF-8?q?On=20souligne=20le=20fait=20qu'il=20y=20a=20un?= =?UTF-8?q?=20probl=C3=A8me=20quand=20le=20dns=20du=20switch=20est=20faux.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- printing/templates/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printing/templates/templates.py b/printing/templates/templates.py index 713c47f..8d4d5d9 100644 --- a/printing/templates/templates.py +++ b/printing/templates/templates.py @@ -57,7 +57,7 @@ def prise_etat(chbre): try: switch = hptools2.HPSwitch(switch_name) 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) vlans = u" " * (13 + len(chbre))