|
@ -85,10 +85,8 @@ func (p Plugin) Exec() error { |
|
|
case "plan-destroy": |
|
|
case "plan-destroy": |
|
|
commands = append(commands, tfPlan(p.Config, true)) |
|
|
commands = append(commands, tfPlan(p.Config, true)) |
|
|
case "apply": |
|
|
case "apply": |
|
|
commands = append(commands, tfPlan(p.Config, false)) |
|
|
|
|
|
commands = append(commands, tfApply(p.Config)) |
|
|
commands = append(commands, tfApply(p.Config)) |
|
|
case "destroy": |
|
|
case "destroy": |
|
|
commands = append(commands, tfPlan(p.Config, true)) |
|
|
|
|
|
commands = append(commands, tfDestroy(p.Config)) |
|
|
commands = append(commands, tfDestroy(p.Config)) |
|
|
default: |
|
|
default: |
|
|
return fmt.Errorf("valid actions are: validate, plan, apply, plan-destroy, destroy. You provided %s", action) |
|
|
return fmt.Errorf("valid actions are: validate, plan, apply, plan-destroy, destroy. You provided %s", action) |
|
|