mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 03:10:39 +00:00
fix: -force is deprecated, use -auto-approve to delete in tf15
This commit is contained in:
parent
3ae33f0742
commit
4fc3bd0b79
@ -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…
Reference in New Issue
Block a user