mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
chore: fix repetitive words (#1472)
Signed-off-by: alwayshang <zhanghonghao@outlook.com>
This commit is contained in:
parent
650ab6db8f
commit
fd3736bd99
@ -503,7 +503,7 @@ func extractChdirOption(args []string) (string, []string, error) {
|
||||
return argValue, newArgs, nil
|
||||
}
|
||||
|
||||
// Creates the the configuration directory.
|
||||
// Creates the configuration directory.
|
||||
// `configDir` should refer to `~/.terraform.d`, `$XDG_CONFIG_HOME/opentofu` or its equivalent
|
||||
// on non-UNIX platforms.
|
||||
func mkConfigDir(configDir string) error {
|
||||
|
@ -637,7 +637,7 @@ func TestLocal_planDestroy_withDataSources(t *testing.T) {
|
||||
t.Fatal("plan should not be empty")
|
||||
}
|
||||
|
||||
// Data source should still exist in the the plan file
|
||||
// Data source should still exist in the plan file
|
||||
plan := testReadPlan(t, planPath)
|
||||
if len(plan.Changes.Resources) != 2 {
|
||||
t.Fatalf("Expected exactly 1 resource for destruction, %d given: %q",
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"github.com/opentofu/opentofu/internal/configs"
|
||||
)
|
||||
|
||||
// State is a container for state tracking of all of the the checks declared in
|
||||
// State is a container for state tracking of all of the checks declared in
|
||||
// a particular OpenTofu configuration and their current statuses.
|
||||
//
|
||||
// A State object is mutable during plan and apply operations but should
|
||||
|
@ -234,7 +234,7 @@ func TestPlanOnlyInAutomation(t *testing.T) {
|
||||
}
|
||||
|
||||
// Because we're running with TF_IN_AUTOMATION set, we should not see
|
||||
// any mention of the the "tofu apply" command in the output.
|
||||
// any mention of the "tofu apply" command in the output.
|
||||
if strings.Contains(stdout, "tofu apply") {
|
||||
t.Errorf("unwanted mention of \"tofu apply\" in plan output\n%s", stdout)
|
||||
}
|
||||
|
@ -893,7 +893,7 @@ func UnmarshalActions(actions []string) plans.Action {
|
||||
// indexes.
|
||||
//
|
||||
// JavaScript (or similar dynamic language) consumers of these values can
|
||||
// iterate over the the steps starting from the root object to reach the
|
||||
// iterate over the steps starting from the root object to reach the
|
||||
// value that each path is describing.
|
||||
func encodePaths(pathSet cty.PathSet) (json.RawMessage, error) {
|
||||
if pathSet.Empty() {
|
||||
|
@ -709,7 +709,7 @@ func (m *Meta) backendMigrateState_S_TFC(opts *backendMigrateOpts, sourceWorkspa
|
||||
// * Specifically for a migration from the "remote" backend using 'prefix', we will
|
||||
// instead 'migrate' the workspaces using a pattern based on the old prefix+name,
|
||||
// not allowing a user to accidentally input the wrong pattern to line up with
|
||||
// what the the remote backend was already using before (which presumably already
|
||||
// what the remote backend was already using before (which presumably already
|
||||
// meets the naming considerations for Terraform Cloud).
|
||||
// In other words, this is a fast-track migration path from the remote backend, retaining
|
||||
// how things already are in Terraform Cloud with no user intervention needed.
|
||||
|
@ -64,7 +64,7 @@ var (
|
||||
)
|
||||
|
||||
// All the locationes from the mockRegistry start with a file:// scheme. If
|
||||
// the the location string here doesn't have a scheme, the mockRegistry will
|
||||
// the location string here doesn't have a scheme, the mockRegistry will
|
||||
// find the absolute path and return a complete URL.
|
||||
var testMods = map[string][]testMod{
|
||||
"registry/foo/bar": {{
|
||||
|
Loading…
Reference in New Issue
Block a user