Tainted resource not recreated if ignore_changes used on any attributes.
This commit is contained in:
parent
70999b1a64
commit
dbf04721d2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue