From 5fc42931fc4553dbad088044a2b8910e46f6bb91 Mon Sep 17 00:00:00 2001 From: Nicolas Lamirault Date: Sat, 9 Mar 2024 17:23:40 +0100 Subject: [PATCH] fix(terraform): validate k3s Signed-off-by: Nicolas Lamirault --- hack/scripts/terraform-validate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/scripts/terraform-validate.sh b/hack/scripts/terraform-validate.sh index dcfe8a538..493f11efc 100755 --- a/hack/scripts/terraform-validate.sh +++ b/hack/scripts/terraform-validate.sh @@ -76,7 +76,8 @@ function tf_validate() { pushd "${infra}" > /dev/null || exit 1 output=$(mktemp) if [ -d "backend-vars" ]; then - terraform init -upgrade -backend-config=backend-vars/main.tfvars + tfvar_file=$(ls backend-vars/*.tfvars) + terraform init -upgrade -backend-config="${tfvar_file}" else terraform init -upgrade &> "${output}" fi