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
This commit is contained in:
Steven Masley
2025-10-29 07:44:09 -05:00
committed by GitHub
parent 95a1ca898f
commit a8294872a3
+1 -1
View File
@@ -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)