strip stdouts
This commit is contained in:
parent
458418c1ec
commit
274f57575b
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ class SmtpdWatcher:
|
|||
self._log.debug(
|
||||
"Denying traffic from IP '%s' in UFW result: %s",
|
||||
ip,
|
||||
result.stdout
|
||||
result.stdout.strip()
|
||||
)
|
||||
if result.returncode == 0:
|
||||
return True
|
||||
|
@ -167,7 +167,7 @@ class SmtpdWatcher:
|
|||
"Adding ban to IP '%s' in jail '%s' result: %s",
|
||||
ip,
|
||||
jail,
|
||||
result.stdout
|
||||
result.stdout.strip()
|
||||
)
|
||||
if result.returncode == 0:
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue