nixos/prometheus: unbreak alertmanager default config
The current default value of listenAddress = null blows up:
$ nixos-rebuild build
error: cannot coerce null to a string, at
.../nixpkgs/nixos/modules/services/monitoring/prometheus/alertmanager.nix:97:16
With listenAddress = "" we use the same default as upstream and there is
no blow up :-)
commit9ec867f59fba934c188e9dd4ccf1d35b49ad0c6f
authorBjørn Forsman <bjorn.forsman@gmail.com>
dateTue 27 Dec 2016, 23:00 (10 years ago)
parentc24206d
nixos/modules/services/monitoring/prometheus/alertmanager.nix+2−2
@@ -62,8 +62,8 @@ in {
6262 };
6363
6464 listenAddress = mkOption {
65− type = types.nullOr types.str;
66− default = null;
65+ type = types.str;
66+ default = "";
6767 description = ''
6868 Address to listen on for the web interface and API.
6969 '';