From 821536b1e998115a27fec5bc216e8d612a80df45 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 23 Feb 2015 19:13:25 -0800 Subject: [PATCH] terraform: call the EvalUpdateStateHook strategically --- terraform/transform_orphan.go | 1 + terraform/transform_resource.go | 1 + terraform/transform_tainted.go | 1 + 3 files changed, 3 insertions(+) diff --git a/terraform/transform_orphan.go b/terraform/transform_orphan.go index 780d8430b..e2a9c7dcd 100644 --- a/terraform/transform_orphan.go +++ b/terraform/transform_orphan.go @@ -262,6 +262,7 @@ func (n *graphNodeOrphanResource) EvalTree() EvalNode { Dependencies: n.DependentOn(), State: &state, }, + &EvalUpdateStateHook{}, }, }, }) diff --git a/terraform/transform_resource.go b/terraform/transform_resource.go index 0ce4f4cd7..19c9c418a 100644 --- a/terraform/transform_resource.go +++ b/terraform/transform_resource.go @@ -400,6 +400,7 @@ func (n *graphNodeExpandedResource) EvalTree() EvalNode { State: &state, Error: &err, }, + &EvalUpdateStateHook{}, }, }, }) diff --git a/terraform/transform_tainted.go b/terraform/transform_tainted.go index 50223a9e8..1e1b2cb31 100644 --- a/terraform/transform_tainted.go +++ b/terraform/transform_tainted.go @@ -163,6 +163,7 @@ func (n *graphNodeTaintedResource) EvalTree() EvalNode { Tainted: &tainted, TaintedIndex: n.Index, }, + &EvalUpdateStateHook{}, }, }, })