0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-21 14:20:40 +00:00

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

View File

@ -225,16 +225,6 @@ func initCommand(config InitOptions) *exec.Cmd {
args = append(args, fmt.Sprintf("-backend-config=%s", v)) 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 // Fail Terraform execution on prompt
args = append(args, "-input=false") args = append(args, "-input=false")