Skip to content

Commit

Permalink
Merge branch 'fix-taint-w-ignorechanges' of https://github.com/sl1pm4…
Browse files Browse the repository at this point in the history
…t/terraform into sl1pm4t-fix-taint-w-ignorechanges
  • Loading branch information
mitchellh committed Oct 27, 2016
2 parents 296ce59 + dbf0472 commit 984cade
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/eval_diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ func (n *EvalDiff) processIgnoreChanges(diff *InstanceDiff) error {
return nil
}

// If the resource has been tainted we shouldn't alter the Diff
if diff.DestroyTainted {
return nil
}

ignorableAttrKeys := make(map[string]bool)
for _, ignoredKey := range ignoreChanges {
for k := range diff.CopyAttributes() {
Expand Down

0 comments on commit 984cade

Please sign in to comment.