Browse Source

fix: -force is deprecated, use -auto-approve to delete in tf15

pull/128/head
Roman Dushko 4 years ago
parent
commit
4fc3bd0b79
No known key found for this signature in database GPG Key ID: 49E42895FE793E7A
  1. 2
      plugin.go

2
plugin.go

@ -300,7 +300,7 @@ func tfDestroy(config Config) *exec.Cmd {
if config.InitOptions.LockTimeout != "" { if config.InitOptions.LockTimeout != "" {
args = append(args, fmt.Sprintf("-lock-timeout=%s", config.InitOptions.LockTimeout)) args = append(args, fmt.Sprintf("-lock-timeout=%s", config.InitOptions.LockTimeout))
} }
args = append(args, "-force") args = append(args, "-auto-approve")
return exec.Command( return exec.Command(
"terraform", "terraform",
args..., args...,

Loading…
Cancel
Save