mirror of https://github.com/fail2ban/fail2ban
- Added "stop" beautifier
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@319 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
6456676d35
commit
761d50610e
|
@ -76,6 +76,9 @@ class Beautifier:
|
||||||
msg = msg + "DEBUG"
|
msg = msg + "DEBUG"
|
||||||
else:
|
else:
|
||||||
msg = msg + `response`
|
msg = msg + `response`
|
||||||
|
elif self.inputCmd == ["stop"]:
|
||||||
|
if response == None:
|
||||||
|
msg = "Shutdown successful"
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def beautifyError(self, response):
|
def beautifyError(self, response):
|
||||||
|
|
Loading…
Reference in New Issue