Remove /bin/true as a default value for actions
This commit is contained in:
+5
-5
@@ -75,7 +75,7 @@ define fail2ban::action (
|
|||||||
|
|
||||||
$array_start = is_array($actionstart) ? {
|
$array_start = is_array($actionstart) ? {
|
||||||
false => $actionstart ? {
|
false => $actionstart ? {
|
||||||
'' => ['/bin/true'],
|
'' => [],
|
||||||
default => [$actionstart],
|
default => [$actionstart],
|
||||||
},
|
},
|
||||||
default => $actionstart,
|
default => $actionstart,
|
||||||
@@ -83,7 +83,7 @@ define fail2ban::action (
|
|||||||
|
|
||||||
$array_stop = is_array($actionstop) ? {
|
$array_stop = is_array($actionstop) ? {
|
||||||
false => $actionstop? {
|
false => $actionstop? {
|
||||||
'' => ['/bin/true'],
|
'' => [],
|
||||||
default => [$actionstop],
|
default => [$actionstop],
|
||||||
},
|
},
|
||||||
default => $actionstop,
|
default => $actionstop,
|
||||||
@@ -91,7 +91,7 @@ define fail2ban::action (
|
|||||||
|
|
||||||
$array_check = is_array($actioncheck) ? {
|
$array_check = is_array($actioncheck) ? {
|
||||||
false => $actioncheck? {
|
false => $actioncheck? {
|
||||||
'' => ['/bin/true'],
|
'' => [],
|
||||||
default => [$actioncheck],
|
default => [$actioncheck],
|
||||||
},
|
},
|
||||||
default => $actioncheck,
|
default => $actioncheck,
|
||||||
@@ -99,7 +99,7 @@ define fail2ban::action (
|
|||||||
|
|
||||||
$array_ban = is_array($actionban) ? {
|
$array_ban = is_array($actionban) ? {
|
||||||
false => $actionban? {
|
false => $actionban? {
|
||||||
'' => ['/bin/true'],
|
'' => [],
|
||||||
default => [$actionban],
|
default => [$actionban],
|
||||||
},
|
},
|
||||||
default => $actionban,
|
default => $actionban,
|
||||||
@@ -107,7 +107,7 @@ define fail2ban::action (
|
|||||||
|
|
||||||
$array_unban = is_array($actionunban) ? {
|
$array_unban = is_array($actionunban) ? {
|
||||||
false => $actionunban? {
|
false => $actionunban? {
|
||||||
'' => ['/bin/true'],
|
'' => [],
|
||||||
default => [$actionunban],
|
default => [$actionunban],
|
||||||
},
|
},
|
||||||
default => $actionunban,
|
default => $actionunban,
|
||||||
|
|||||||
@@ -24,11 +24,6 @@ describe 'fail2ban::action' do
|
|||||||
|
|
||||||
[Definition]
|
[Definition]
|
||||||
|
|
||||||
actionstart = /bin/true
|
|
||||||
actionstop = /bin/true
|
|
||||||
actioncheck = /bin/true
|
|
||||||
actionban = /bin/true
|
|
||||||
actionunban = /bin/true
|
|
||||||
|
|
||||||
[Init]
|
[Init]
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user