From 532277b7ccfe5949333ff0c5ec7b57a64bb29f84 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 11 Sep 2018 16:29:11 -0700 Subject: [PATCH] core: EvalWriteState produces a different message when deleting state --- terraform/eval_state.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terraform/eval_state.go b/terraform/eval_state.go index ab0c52202..6a091325f 100644 --- a/terraform/eval_state.go +++ b/terraform/eval_state.go @@ -210,7 +210,11 @@ func (n *EvalWriteState) Eval(ctx EvalContext) (interface{}, error) { panic("EvalWriteState used with pointer to nil ProviderSchema object") } - log.Printf("[TRACE] EvalWriteState: writing state object for %s", absAddr) + if obj != nil { + log.Printf("[TRACE] EvalWriteState: writing current state object for %s", absAddr) + } else { + log.Printf("[TRACE] EvalWriteState: removing current state object for %s", absAddr) + } // TODO: Update this to use providers.Schema and populate the real // schema version in the second argument to Encode below.