Tainted resource not recreated if ignore_changes used on any attributes.

This commit is contained in:
Matt Morrison 2016-07-29 09:12:39 +12:00
parent 70999b1a64
commit dbf04721d2
1 changed files with 5 additions and 0 deletions

View File

@ -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.Attributes {