Merge pull request #130 from tonglil/patch-1

Remove -lock and -lock-timeout for terraform init
This commit is contained in:
Jacob McCann 2021-07-09 10:17:41 -05:00 committed by GitHub
commit 5e52bffbe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -225,16 +225,6 @@ func initCommand(config InitOptions) *exec.Cmd {
args = append(args, fmt.Sprintf("-backend-config=%s", v))
}
// True is default in TF
if config.Lock != nil {
args = append(args, fmt.Sprintf("-lock=%t", *config.Lock))
}
// "0s" is default in TF
if config.LockTimeout != "" {
args = append(args, fmt.Sprintf("-lock-timeout=%s", config.LockTimeout))
}
// Fail Terraform execution on prompt
args = append(args, "-input=false")