From 8d4aeb96c0a6a36c6860fbf7b3771d2284fb6f2c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 26 Jun 2014 22:11:04 -0700 Subject: [PATCH] command: add preapply to UI so we can see that --- command/hook_ui.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/command/hook_ui.go b/command/hook_ui.go index 43b27fb99..2c298feba 100644 --- a/command/hook_ui.go +++ b/command/hook_ui.go @@ -17,6 +17,16 @@ type UiHook struct { ui cli.Ui } +func (h *UiHook) PreApply( + id string, + s *terraform.ResourceState, + d *terraform.ResourceDiff) (terraform.HookAction, error) { + h.once.Do(h.init) + + h.ui.Output(fmt.Sprintf("%s: Applying...", id)) + return terraform.HookActionContinue, nil +} + func (h *UiHook) PreDiff( id string, s *terraform.ResourceState) (terraform.HookAction, error) { h.once.Do(h.init)