Browse Source

Merge pull request #130 from tonglil/patch-1

Remove -lock and -lock-timeout for terraform init
pull/84/merge
Jacob McCann 4 years ago
committed by GitHub
parent
commit
5e52bffbe7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      plugin.go

10
plugin.go

@ -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")

Loading…
Cancel
Save