command: Remove second DefaultDataDirectory const (#7666)

This commit is contained in:
David Glasser 2016-07-20 15:55:05 -07:00 committed by Paul Stack
parent 07cd0bfc13
commit 50959a654c
3 changed files with 2 additions and 6 deletions

View File

@ -22,10 +22,6 @@ const DefaultVarsFilename = "terraform.tfvars"
// DefaultBackupExtension is added to the state file to form the path
const DefaultBackupExtension = ".backup"
// DefaultDataDirectory is the directory where local state is stored
// by default.
const DefaultDataDirectory = ".terraform"
// DefaultParallelism is the limit Terraform places on total parallel
// operations as it walks the dependency graph.
const DefaultParallelism = 10

View File

@ -58,7 +58,7 @@ func (c *InitCommand) Run(args []string) int {
// Set the state out path to be the path requested for the module
// to be copied. This ensures any remote states gets setup in the
// proper directory.
c.Meta.dataDir = filepath.Join(path, DefaultDataDirectory)
c.Meta.dataDir = filepath.Join(path, DefaultDataDir)
source := args[0]

View File

@ -174,7 +174,7 @@ func (m *Meta) Context(copts contextOpts) (*terraform.Context, bool, error) {
// DataDir returns the directory where local data will be stored.
func (m *Meta) DataDir() string {
dataDir := DefaultDataDirectory
dataDir := DefaultDataDir
if m.dataDir != "" {
dataDir = m.dataDir
}