Unverified Commit 4980a7d9 authored by Maximilian Bosch's avatar Maximilian Bosch
Browse files

nixos/prometheus-exporters: fix assertions declared in exporter modules

And it turns out, the test was using a removed option all along 🙃
parent 4d262e74
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ let
    in
    mkIf conf.enable {
      warnings = conf.warnings or [];
      assertions = conf.assertions or [];
      users.users."${name}-exporter" = (mkIf (conf.user == "${name}-exporter" && !enableDynamicUser) {
        description = "Prometheus ${name} exporter service user";
        isSystemUser = true;
+0 −1
Original line number Diff line number Diff line
@@ -482,7 +482,6 @@ let
    json = {
      exporterConfig = {
        enable = true;
        url = "http://localhost";
        configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
          modules = {
            default = {