mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
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;
|
||||
|
||||
cfgFile = pkgs.writeText "kibana.json" (builtins.toJSON (
|
||||
(filterAttrsRecursive (n: v: v != null) ({
|
||||
(filterAttrsRecursive (n: v: v != null && v != []) ({
|
||||
server.host = cfg.listenAddress;
|
||||
server.port = cfg.port;
|
||||
server.ssl.certificate = cfg.cert;
|
||||
|
|
Loading…
Reference in a new issue