services: ddclient: Fix unrecognized keywords.

This patch fixes warnings about unrecognized keywords in logs.

* gnu/services/dns.scm (serialize-field): Skip some field names.
This commit is contained in:
Oleg Pykhalov 2018-12-04 07:08:47 +03:00
parent 191c439e79
commit 9325533bd0
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -684,7 +684,8 @@ (define (uglify-field-name field-name)
(string-delete #\? (symbol->string field-name))) (string-delete #\? (symbol->string field-name)))
(define (serialize-field field-name val) (define (serialize-field field-name val)
(format #t "~a=~a\n" (uglify-field-name field-name) val)) (when (not (member field-name '(group secret-file user)))
(format #t "~a=~a\n" (uglify-field-name field-name) val)))
(define (serialize-boolean field-name val) (define (serialize-boolean field-name val)
(serialize-field field-name (if val "yes" "no"))) (serialize-field field-name (if val "yes" "no")))