mirror of
https://github.com/thegeeklab/wp-opentofu.git
synced 2024-11-24 13:20:39 +00:00
Remove forcing a call on plan with apply or destroy actions
This commit is contained in:
parent
77bd39b3ef
commit
feef3866df
@ -85,10 +85,8 @@ func (p Plugin) Exec() error {
|
||||
case "plan-destroy":
|
||||
commands = append(commands, tfPlan(p.Config, true))
|
||||
case "apply":
|
||||
commands = append(commands, tfPlan(p.Config, false))
|
||||
commands = append(commands, tfApply(p.Config))
|
||||
case "destroy":
|
||||
commands = append(commands, tfPlan(p.Config, true))
|
||||
commands = append(commands, tfDestroy(p.Config))
|
||||
default:
|
||||
return fmt.Errorf("valid actions are: validate, plan, apply, plan-destroy, destroy. You provided %s", action)
|
||||
|
Loading…
Reference in New Issue
Block a user