This commit is contained in:
Ludo
2025-01-09 16:43:56 +01:00
parent 4bae08f61e
commit e07adf71c1

View File

@@ -17,10 +17,11 @@
# tfdoc:file:description Network monitoring dashboards.
locals {
dashboard_files = fileset(var.factories_config.dashboards, "*.json")
dashboard_path = "${var.factories_config.data_dir}/dashboards"
dashboard_files = fileset(local.dashboard_path, "*.json")
dashboards = {
for filename in local.dashboard_files :
filename => "${var.factories_config.dashboards}/${filename}"
filename => "${local.dashboard_path}/${filename}"
}
}