diff --git a/terraform/eval_ignore_changes.go b/terraform/eval_ignore_changes.go index 1a44089a9..2eb2d9bb1 100644 --- a/terraform/eval_ignore_changes.go +++ b/terraform/eval_ignore_changes.go @@ -1,4 +1,5 @@ package terraform + import ( "github.com/hashicorp/terraform/config" "strings" @@ -9,7 +10,7 @@ import ( // IgnoreChanges lifecycle. type EvalIgnoreChanges struct { Resource *config.Resource - Diff **InstanceDiff + Diff **InstanceDiff } func (n *EvalIgnoreChanges) Eval(ctx EvalContext) (interface{}, error) { @@ -20,7 +21,7 @@ func (n *EvalIgnoreChanges) Eval(ctx EvalContext) (interface{}, error) { diff := *n.Diff ignoreChanges := n.Resource.Lifecycle.IgnoreChanges - for _, ignoredName := range ignoreChanges { + for _, ignoredName := range ignoreChanges { for name := range diff.Attributes { if strings.HasPrefix(name, ignoredName) { delete(diff.Attributes, name) diff --git a/terraform/transform_resource.go b/terraform/transform_resource.go index 81ff158d9..5091f29c9 100644 --- a/terraform/transform_resource.go +++ b/terraform/transform_resource.go @@ -320,7 +320,7 @@ func (n *graphNodeExpandedResource) EvalTree() EvalNode { }, &EvalIgnoreChanges{ Resource: n.Resource, - Diff: &diff, + Diff: &diff, }, &EvalWriteState{ Name: n.stateId(),