mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
ENH: dont execute empty commands
This commit is contained in:
parent
13a12589a3
commit
4d1c060e21
1 changed files with 4 additions and 0 deletions
|
|
@ -359,6 +359,10 @@ class Action:
|
|||
#@staticmethod
|
||||
def executeCmd(realCmd):
|
||||
logSys.debug(realCmd)
|
||||
if realCmd is None or realCmd == "":
|
||||
logSys.debug("Nothing to do")
|
||||
return True
|
||||
|
||||
_cmd_lock.acquire()
|
||||
try: # Try wrapped within another try needed for python version < 2.5
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue