From 23de2fc2f36bce4880154f89c94cd1d2f10e29f6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 26 Jun 2014 17:18:46 -0700 Subject: [PATCH] command: UiHook outputs for diffs --- command/hook_ui.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command/hook_ui.go b/command/hook_ui.go index afd599d112..5b0b8d0d1c 100644 --- a/command/hook_ui.go +++ b/command/hook_ui.go @@ -13,6 +13,12 @@ type UiHook struct { Ui cli.Ui } +func (h *UiHook) PreDiff( + id string, s *terraform.ResourceState) (terraform.HookAction, error) { + h.Ui.Output(fmt.Sprintf("Calculating diff for %s", id)) + return terraform.HookActionContinue, nil +} + func (h *UiHook) PreRefresh( id string, s *terraform.ResourceState) (terraform.HookAction, error) { h.Ui.Output(fmt.Sprintf("Refreshing state for %s (ID: %s)", id, s.ID))