diff options
author | Daniel Black <grooverdan@users.sourceforge.net> | 2014-01-19 14:48:29 +1100 |
---|---|---|
committer | Daniel Black <grooverdan@users.sourceforge.net> | 2014-01-19 14:48:29 +1100 |
commit | a650178bd19433d98e24f4a4a6f98f7cbffbc731 (patch) | |
tree | db20d0d1b212459e397042a317e373c5548e095d /bin/fail2ban-client | |
parent | 77aab8d97aebc6098f2515ca1250c5220735b0c3 (diff) | |
parent | 0b4dd6272c1467730ce49bf4457c90d477f9e2d0 (diff) | |
download | fail2ban-a650178bd19433d98e24f4a4a6f98f7cbffbc731.tar.gz |
MRG: merge from master 2014-01-19
Diffstat (limited to 'bin/fail2ban-client')
-rwxr-xr-x | bin/fail2ban-client | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/fail2ban-client b/bin/fail2ban-client index 6275d420..c8778849 100755 --- a/bin/fail2ban-client +++ b/bin/fail2ban-client @@ -137,6 +137,7 @@ class Fail2banClient: def __processCmd(self, cmd, showRet = True): beautifier = Beautifier() + ret = True for c in cmd: beautifier.setInputCmd(c) try: @@ -147,10 +148,10 @@ class Fail2banClient: if showRet: print beautifier.beautify(ret[1]) else: + ret = False logSys.error("NOK: " + `ret[1].args`) if showRet: print beautifier.beautifyError(ret[1]) - return False except socket.error: if showRet: logSys.error("Unable to contact server. Is it running?") @@ -159,7 +160,7 @@ class Fail2banClient: if showRet: logSys.error(e) return False - return True + return ret ## # Process a command line. |