gnu: dns: Fix configuration formating.
authorJulien Lepiller <julien@lepiller.eu>
Fri, 26 Apr 2019 16:36:44 +0000 (18:36 +0200)
committerJulien Lepiller <julien@lepiller.eu>
Fri, 26 Apr 2019 16:37:48 +0000 (18:37 +0200)
* gnu/services/dns.scm (format-string-list): Fix formating of lists with
only one symbol.

gnu/services/dns.scm

index 445e035..1613325 100644 (file)
           (fold (lambda (x1 x2)
                   (string-append (if (symbol? x1) (symbol->string x1) x1) ", "
                                  (if (symbol? x2) (symbol->string x2) x2)))
-                (car l) (cdr l))
+                (if (symbol? (car l)) (symbol->string (car l)) (car l)) (cdr l))
           "]"))))
 
 (define (knot-acl-config acls)