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:
commit
5e52bffbe7
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…
Reference in New Issue
Block a user