Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(provisioner/terraform/tfparse): implement WorkspaceTagDefaultsFromFile #15236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Nov 14, 2024
6 changes: 3 additions & 3 deletions provisioner/terraform/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ func (s *server) Parse(sess *provisionersdk.Session, _ *proto.ParseRequest, _ <-
defer span.End()

// Load the module and print any parse errors.
module, diags := tfconfig.LoadModule(sess.WorkDirectory)
parser, diags := tfparse.New(sess.WorkDirectory, tfparse.WithLogger(s.logger.Named("tfparse")))
if diags.HasErrors() {
return provisionersdk.ParseErrorf("load module: %s", formatDiagnostics(sess.WorkDirectory, diags))
}

workspaceTags, err := tfparse.WorkspaceTags(ctx, s.logger, module)
workspaceTags, err := parser.WorkspaceTags(ctx)
if err != nil {
return provisionersdk.ParseErrorf("can't load workspace tags: %v", err)
}

templateVariables, err := tfparse.LoadTerraformVariables(module)
templateVariables, err := parser.TemplateVariables()
if err != nil {
return provisionersdk.ParseErrorf("can't load template variables: %v", err)
}
Expand Down
182 changes: 0 additions & 182 deletions provisioner/terraform/tfparse/tfextract.go

This file was deleted.

Loading
Loading