Make map clearer, more parentheses

This commit is contained in:
daragh 2024-05-23 01:21:29 +01:00
parent ca87227571
commit 113084148c
No known key found for this signature in database

View file

@ -60,7 +60,7 @@ in {
job_name = "node_exporter";
static_configs = [
{
targets = map (hostname: "${hostname}:${collecter_port}") lib.attrsets.mapAttrsToList (server: server.deployment.hostname) nodes ++ cfg.other_nodes;
targets = (map (hostname: "${hostname}:${collecter_port}") (lib.attrsets.mapAttrsToList (server: server.deployment.hostname)) nodes) ++ cfg.other_nodes;
}
];
}