mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: fail2ban-service-type: Fix field name serialization.
* gnu/services/security.scm: Wrong condition in string-filter function in fail2ban-jail-configuration-serialize-field-name. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
58974e7b19
commit
80d9edb69d
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ (define (fail2ban-jail-configuration-serialize-field-name name)
|
|||
(string-append "bantime." (substring name 9))))
|
||||
((string-contains name "-")
|
||||
(fail2ban-jail-configuration-serialize-field-name
|
||||
(string-filter (lambda (c) (equal? c #\-)) name)))
|
||||
(string-filter (lambda (c) (not (equal? c #\-))) name)))
|
||||
(else name)))
|
||||
|
||||
(define (fail2ban-jail-configuration-serialize-string field-name value)
|
||||
|
|
Loading…
Reference in a new issue