Merge branch 'fix-taint-w-ignorechanges' of https://github.com/sl1pm4t/terraform into sl1pm4t-fix-taint-w-ignorechanges
This commit is contained in:
commit
984cade39f
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue