Remove /bin/true as a default value for actions

This commit is contained in:
Javier Bértoli
2013-08-10 12:00:23 -03:00
parent 0b9de51a48
commit fd0284bcc4
2 changed files with 5 additions and 10 deletions
+5 -5
View File
@@ -75,7 +75,7 @@ define fail2ban::action (
$array_start = is_array($actionstart) ? {
false => $actionstart ? {
'' => ['/bin/true'],
'' => [],
default => [$actionstart],
},
default => $actionstart,
@@ -83,7 +83,7 @@ define fail2ban::action (
$array_stop = is_array($actionstop) ? {
false => $actionstop? {
'' => ['/bin/true'],
'' => [],
default => [$actionstop],
},
default => $actionstop,
@@ -91,7 +91,7 @@ define fail2ban::action (
$array_check = is_array($actioncheck) ? {
false => $actioncheck? {
'' => ['/bin/true'],
'' => [],
default => [$actioncheck],
},
default => $actioncheck,
@@ -99,7 +99,7 @@ define fail2ban::action (
$array_ban = is_array($actionban) ? {
false => $actionban? {
'' => ['/bin/true'],
'' => [],
default => [$actionban],
},
default => $actionban,
@@ -107,7 +107,7 @@ define fail2ban::action (
$array_unban = is_array($actionunban) ? {
false => $actionunban? {
'' => ['/bin/true'],
'' => [],
default => [$actionunban],
},
default => $actionunban,
-5
View File
@@ -24,11 +24,6 @@ describe 'fail2ban::action' do
[Definition]
actionstart = /bin/true
actionstop = /bin/true
actioncheck = /bin/true
actionban = /bin/true
actionunban = /bin/true
[Init]
"