mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-18 18:29:44 -05:00
remove copied default value
This commit is contained in:
parent
fd8d61ac9b
commit
93f4c1b9b4
2 changed files with 3 additions and 6 deletions
|
|
@ -34,10 +34,6 @@ const DefaultStateFilename = "terraform.tfstate"
|
|||
// Terraform state, if applicable. Backends can set their own custom defaults.
|
||||
const DefaultStatePersistInterval = 20
|
||||
|
||||
// DefaultVarsFilename is the default filename used for vars
|
||||
// TODO: Remove here
|
||||
const DefaultVarsFilename = "terraform.tfvars"
|
||||
|
||||
// DefaultBackupExtension is added to the state file to form the path
|
||||
const DefaultBackupExtension = ".backup"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import (
|
|||
"github.com/hashicorp/terraform/internal/backend"
|
||||
"github.com/hashicorp/terraform/internal/backend/local"
|
||||
"github.com/hashicorp/terraform/internal/backend/remote-state/inmem"
|
||||
"github.com/hashicorp/terraform/internal/command/arguments"
|
||||
"github.com/hashicorp/terraform/internal/providers"
|
||||
"github.com/hashicorp/terraform/internal/states"
|
||||
"github.com/hashicorp/terraform/internal/states/statefile"
|
||||
|
|
@ -344,7 +345,7 @@ func TestWorkspace_createAndList(t *testing.T) {
|
|||
|
||||
// make sure a vars file doesn't interfere
|
||||
err := os.WriteFile(
|
||||
DefaultVarsFilename,
|
||||
arguments.DefaultVarsFilename,
|
||||
[]byte(`foo = "bar"`),
|
||||
0644,
|
||||
)
|
||||
|
|
@ -392,7 +393,7 @@ func TestWorkspace_createAndShow(t *testing.T) {
|
|||
|
||||
// make sure a vars file doesn't interfere
|
||||
err := os.WriteFile(
|
||||
DefaultVarsFilename,
|
||||
arguments.DefaultVarsFilename,
|
||||
[]byte(`foo = "bar"`),
|
||||
0644,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue