nixos/kibana: Filter empty lists
Some options (in particular elasticsearch.ssl.certificateAuthorities) are not allowed to be empty.
This commit is contained in:
parent
723148f92e
commit
88a70c9669
@ -9,7 +9,7 @@ let
|
|||||||
lt6_6 = builtins.compareVersions cfg.package.version "6.6" < 0;
|
lt6_6 = builtins.compareVersions cfg.package.version "6.6" < 0;
|
||||||
|
|
||||||
cfgFile = pkgs.writeText "kibana.json" (builtins.toJSON (
|
cfgFile = pkgs.writeText "kibana.json" (builtins.toJSON (
|
||||||
(filterAttrsRecursive (n: v: v != null) ({
|
(filterAttrsRecursive (n: v: v != null && v != []) ({
|
||||||
server.host = cfg.listenAddress;
|
server.host = cfg.listenAddress;
|
||||||
server.port = cfg.port;
|
server.port = cfg.port;
|
||||||
server.ssl.certificate = cfg.cert;
|
server.ssl.certificate = cfg.cert;
|
||||||
|
Loading…
Reference in New Issue
Block a user