Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita829487

Browse files
authored
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
1 parent95a1ca8 commita829487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎provisioner/terraform/executor.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ func (e *executor) apply(
608608
iferr!=nil {
609609
returnnil,err
610610
}
611-
statefilePath:=filepath.Join(e.workdir,"terraform.tfstate")
611+
statefilePath:=getStateFilePath(e.workdir)
612612
stateContent,err:=os.ReadFile(statefilePath)
613613
iferr!=nil {
614614
returnnil,xerrors.Errorf("read statefile %q: %w",statefilePath,err)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp