From a8294872a3f8348313af89a4e84324b1111a12ee Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Wed, 29 Oct 2025 07:44:09 -0500 Subject: [PATCH] chore: use consistent function for statefile path (#20527) We use `getStateFilePath` in 2 locations, and a manual `filepath.Join` here. Just refactored to use the helper function --- provisioner/terraform/executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/terraform/executor.go b/provisioner/terraform/executor.go index 5ef7f626f9..c7811fe272 100644 --- a/provisioner/terraform/executor.go +++ b/provisioner/terraform/executor.go @@ -608,7 +608,7 @@ func (e *executor) apply( if err != nil { return nil, err } - statefilePath := filepath.Join(e.workdir, "terraform.tfstate") + statefilePath := getStateFilePath(e.workdir) stateContent, err := os.ReadFile(statefilePath) if err != nil { return nil, xerrors.Errorf("read statefile %q: %w", statefilePath, err)