Skip to content

Commit

Permalink
Only output the maxretry when the user supplies it
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjj committed Jun 29, 2014
1 parent 3994538 commit 8dc63a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/etc/fail2ban/jail.local.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ enabled = {{ service.enabled|default("true") }}
port = {{ service.port }}
filter = {{ service.filter }}
logpath = {{ service.logpath }}
maxretry = {{ service.maxretry|default(fail2ban_maxretry) }}
{% if service.maxretry is defined %}
maxretry = {{ service.maxretry }}
{% endif %}
{% if service.protocol is defined %}
protocol = {{ service.protocol }}
{% endif %}
Expand Down

0 comments on commit 8dc63a2

Please sign in to comment.