Remove all Terraform mentions in STDOUTs in the codebase (#704)

This commit is contained in:
RLRabinowitz 2023-10-12 16:24:04 +03:00 committed by GitHub
parent 1b9148a3de
commit 26fb627af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -146,7 +146,7 @@ func (b *Remote) LocalRun(op *backend.Operation) (*backend.LocalRun, statemgr.Fu
diags = diags.Append(ctxDiags)
ret.Core = tfCtx
log.Printf("[TRACE] backend/remote: finished building terraform.Context")
log.Printf("[TRACE] backend/remote: finished building tofu.Context")
return ret, stateMgr, diags
}

View File

@ -54,7 +54,7 @@ func dataSourceRemoteStateGetSchema() providers.Schema {
},
"workspace": {
Type: cty.String,
Description: "The Terraform workspace to use, if " +
Description: "The OpenTofu workspace to use, if " +
"the backend supports workspaces.",
DescriptionKind: configschema.StringMarkdown,
Optional: true,

View File

@ -716,7 +716,7 @@ func (m *Module) CheckCoreVersionRequirements(path addrs.Module, sourceAddr addr
Severity: hcl.DiagError,
Summary: "Invalid required_version constraint",
Detail: fmt.Sprintf(
"Prerelease version constraints are not supported: %s. Remove the prerelease information from the constraint. Prerelease versions of terraform will match constraints using their version core only.",
"Prerelease version constraints are not supported: %s. Remove the prerelease information from the constraint. Prerelease versions of OpenTofu will match constraints using their version core only.",
required.String()),
Subject: constraint.DeclRange.Ptr(),
})

View File

@ -39,7 +39,7 @@ func decodeProvisionerBlock(block *hcl.Block) (*Provisioner, hcl.Diagnostics) {
diags = append(diags, &hcl.Diagnostic{
Severity: hcl.DiagError,
Summary: fmt.Sprintf("The \"%s\" provisioner has been removed", pv.Type),
Detail: fmt.Sprintf("The \"%s\" provisioner was deprecated in OpenTofu 0.13.4 has been removed from OpenTofu. Visit https://learn.hashicorp.com/collections/terraform/provision for alternatives to using provisioners that are a better fit for the OpenTofu workflow.", pv.Type),
Detail: fmt.Sprintf("The \"%s\" provisioner is deprecated and has been removed from OpenTofu.", pv.Type),
Subject: &pv.TypeRange,
})
return nil, diags

View File

@ -341,7 +341,7 @@ var DescriptionList = map[string]descriptionEntry{
ParamDescription: []string{"", ""},
},
"sensitive": {
Description: "`sensitive` takes any value and returns a copy of it marked so that Terraform will treat it as sensitive, with the same meaning and behavior as for [sensitive input variables](/language/values/variables#suppressing-values-in-cli-output).",
Description: "`sensitive` takes any value and returns a copy of it marked so that OpenTofu will treat it as sensitive, with the same meaning and behavior as for [sensitive input variables](/language/values/variables#suppressing-values-in-cli-output).",
ParamDescription: []string{""},
},
"setintersection": {

View File

@ -2250,7 +2250,7 @@ const stateValidateErrMultiModule = `
Multiple modules with the same path: %s
This means that there are multiple entries in the "modules" field
in your state file that point to the same module. This will cause Terraform
in your state file that point to the same module. This will cause OpenTofu
to behave in unexpected and error prone ways and is invalid. Please back up
and modify your state file manually to resolve this.
`

View File

@ -20,7 +20,7 @@ const panicOutput = `
OpenTofu crashed! This is always indicative of a bug within OpenTofu.
Please report the crash with OpenTofu[1] so that we can fix this.
When reporting bugs, please include your terraform version, the stack trace
When reporting bugs, please include your OpenTofu version, the stack trace
shown below, and any additional information which may help replicate the issue.
[1]: https://github.com/opentofu/opentofu/issues

View File

@ -88,7 +88,7 @@ func (s *Session) handleEval(line string) (string, tfdiags.Diagnostics) {
func (s *Session) handleHelp() (string, tfdiags.Diagnostics) {
text := `
The Terraform console allows you to experiment with Terraform interpolations.
The OpenTofu console allows you to experiment with OpenTofu interpolations.
You may access resources in the state (if you have one) just as you would
from a configuration. For example: "aws_instance.foo.id" would evaluate
to the ID of "aws_instance.foo" if it exists in your state.