fix(job): wrong variable use in nomad job

This commit is contained in:
Bertrand Lanson 2024-02-25 00:05:59 +01:00
parent 8a8cc7c793
commit 7d683b2a6a

View File

@ -12,7 +12,7 @@ resource "nomad_job" "this" {
purge_on_destroy = true
hcl2 {
allow_fs = true
vars = contains(keys(var.jobs_variables), each.key) ? jobs_variables[each.key] : {}
vars = contains(keys(var.jobs_variables), each.key) ? var.jobs_variables[each.key] : {}
}
}