diff options
author | pennae <github@quasiparticle.net> | 2022-05-14 08:01:30 +0200 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2022-05-15 10:33:38 +0200 |
commit | c1115d37ffd4f947dd110c1bfc8f1593eaa07928 (patch) | |
tree | fdba3bb9cf83c6783cd23814cd258dccb945d0e0 | |
parent | 2145dbc4fcd3c512bb7ec6e0826fa3d2d2e80c4c (diff) |
nixos/mosquitto: fix attribute path display in assertions
-rw-r--r-- | nixos/modules/services/networking/mosquitto.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/mosquitto.nix b/nixos/modules/services/networking/mosquitto.nix index 1b61a3ee59915..256d9457d3960 100644 --- a/nixos/modules/services/networking/mosquitto.nix +++ b/nixos/modules/services/networking/mosquitto.nix @@ -296,7 +296,7 @@ let }; listenerAsserts = prefix: listener: - assertKeysValid prefix freeformListenerKeys listener.settings + assertKeysValid "${prefix}.settings" freeformListenerKeys listener.settings ++ userAsserts prefix listener.users ++ imap0 (i: v: authAsserts "${prefix}.authPlugins.${toString i}" v) @@ -398,7 +398,7 @@ let }; bridgeAsserts = prefix: bridge: - assertKeysValid prefix freeformBridgeKeys bridge.settings + assertKeysValid "${prefix}.settings" freeformBridgeKeys bridge.settings ++ [ { assertion = length bridge.addresses > 0; message = "Bridge ${prefix} needs remote broker addresses"; @@ -527,7 +527,7 @@ let globalAsserts = prefix: cfg: flatten [ - (assertKeysValid prefix freeformGlobalKeys cfg.settings) + (assertKeysValid "${prefix}.settings" freeformGlobalKeys cfg.settings) (imap0 (n: l: listenerAsserts "${prefix}.listener.${toString n}" l) cfg.listeners) (mapAttrsToList (n: b: bridgeAsserts "${prefix}.bridge.${n}" b) cfg.bridges) ]; |