From 7d683b2a6acf4688b0138931e9b32f79408f9649 Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 25 Feb 2024 00:05:59 +0100 Subject: [PATCH] fix(job): wrong variable use in nomad job --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index aa3d6dc..ab14d77 100644 --- a/main.tf +++ b/main.tf @@ -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] : {} } }