Skip to content

Commit 2320dcc

Browse files
committed
tfextract -> tfparse
1 parent 4899bef commit 2320dcc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

provisioner/terraform/parse.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/mitchellh/go-wordwrap"
1010

1111
"github.com/coder/coder/v2/coderd/tracing"
12-
"github.com/coder/coder/v2/provisioner/terraform/tfextract"
12+
"github.com/coder/coder/v2/provisioner/terraform/tfparse"
1313
"github.com/coder/coder/v2/provisionersdk"
1414
"github.com/coder/coder/v2/provisionersdk/proto"
1515
)
@@ -26,12 +26,12 @@ func (s *server) Parse(sess *provisionersdk.Session, _ *proto.ParseRequest, _ <-
2626
return provisionersdk.ParseErrorf("load module: %s", formatDiagnostics(sess.WorkDirectory, diags))
2727
}
2828

29-
workspaceTags, err := tfextract.WorkspaceTags(ctx, s.logger, module)
29+
workspaceTags, err := tfparse.WorkspaceTags(ctx, s.logger, module)
3030
if err != nil {
3131
return provisionersdk.ParseErrorf("can't load workspace tags: %v", err)
3232
}
3333

34-
templateVariables, err := tfextract.LoadTerraformVariables(module)
34+
templateVariables, err := tfparse.LoadTerraformVariables(module)
3535
if err != nil {
3636
return provisionersdk.ParseErrorf("can't load template variables: %v", err)
3737
}

provisioner/terraform/tfextract/tfextract.go renamed to provisioner/terraform/tfparse/tfextract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package tfextract
1+
package tfparse
22

33
import (
44
"context"

0 commit comments

Comments
 (0)