0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-23 17:10:38 +00:00

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

This commit is contained in:
Roman Dushko 2021-05-21 14:58:59 +02:00
parent 3ae33f0742
commit 4fc3bd0b79
No known key found for this signature in database
GPG Key ID: 49E42895FE793E7A

View File

@ -300,7 +300,7 @@ func tfDestroy(config Config) *exec.Cmd {
if 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(
"terraform",
args...,