Browse Source
fix: -force is deprecated, use -auto-approve to delete in tf15
pull/128/head
Roman Dushko
4 years ago
No known key found for this signature in database
GPG Key ID: 49E42895FE793E7A
1 changed files with
1 additions and
1 deletions
-
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..., |
|
|