fix(job): wrong variable use in nomad job
This commit is contained in:
parent
8a8cc7c793
commit
7d683b2a6a
2
main.tf
2
main.tf
@ -12,7 +12,7 @@ resource "nomad_job" "this" {
|
|||||||
purge_on_destroy = true
|
purge_on_destroy = true
|
||||||
hcl2 {
|
hcl2 {
|
||||||
allow_fs = true
|
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] : {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user