From da845226e870810acca1ca1defbc2353daf08693 Mon Sep 17 00:00:00 2001 From: lostcontrol Date: Sun, 11 Feb 2007 23:21:56 +0000 Subject: [PATCH] - Display the IP list correctly git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@547 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- client/beautifier.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/beautifier.py b/client/beautifier.py index b31cc266..132d1626 100644 --- a/client/beautifier.py +++ b/client/beautifier.py @@ -68,13 +68,18 @@ class Beautifier: msg = "Added jail " + response elif inC[0:1] == ['status']: if len(inC) > 1: + # Create IP list + ipList = "" + for ip in response[1][1][2][1]: + ipList += ip + " " + # Display information msg = "Status for the jail: " + inC[1] + "\n" msg = msg + "|- " + response[0][0] + "\n" msg = msg + "| |- " + response[0][1][0][0] + ":\t" + `response[0][1][0][1]` + "\n" msg = msg + "| `- " + response[0][1][1][0] + ":\t" + `response[0][1][1][1]` + "\n" msg = msg + "`- " + response[1][0] + "\n" msg = msg + " |- " + response[1][1][0][0] + ":\t" + `response[1][1][0][1]` + "\n" - msg = msg + " | `- " + response[1][1][2][0] + ":\t" + `response[1][1][2][1]` + "\n" + msg = msg + " | `- " + response[1][1][2][0] + ":\t" + ipList + "\n" msg = msg + " `- " + response[1][1][1][0] + ":\t" + `response[1][1][1][1]` else: msg = "Status\n"