From b685140108dd55cf608805ea52668774313c4cf9 Mon Sep 17 00:00:00 2001
From: Timo Furrer <tfurrer@gitlab.com>
Date: Thu, 14 Nov 2024 17:53:40 +0100
Subject: [PATCH] Fix JSON path file ending

Changelog: fixed
---
 src/gitlab-tofu.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gitlab-tofu.sh b/src/gitlab-tofu.sh
index 0c2489a..5c33e2b 100644
--- a/src/gitlab-tofu.sh
+++ b/src/gitlab-tofu.sh
@@ -184,7 +184,7 @@ should_init_without_reconfigure=${GITLAB_TOFU_INIT_NO_RECONFIGURE:-false}
 # Plan variables
 apply_without_plan=${GITLAB_TOFU_APPLY_NO_PLAN:-false}
 plan_cache_path="${GITLAB_TOFU_PLAN_CACHE:-${default_tf_plan_cache:-${base_plan_name}.cache}}"
-plan_json_path="${GITLAB_TOFU_PLAN_JSON:-${default_tf_plan_json:-${base_plan_name}.cache}}"
+plan_json_path="${GITLAB_TOFU_PLAN_JSON:-${default_tf_plan_json:-${base_plan_name}.json}}"
 plan_with_detailed_exitcode=${GITLAB_TOFU_USE_DETAILED_EXITCODE:-false}
 plan_with_json_file=${GITLAB_TOFU_PLAN_WITH_JSON:-false}
 plan_jq_filter='
-- 
GitLab