IgnoreAllChanges should override during merge

This commit is contained in:
Katy Moe 2021-11-01 19:08:30 +00:00
parent df6dad5070
commit 257c24ff75
No known key found for this signature in database
GPG Key ID: 8C3780F6DCDDA885
1 changed files with 3 additions and 0 deletions

View File

@ -242,6 +242,9 @@ func (r *Resource) merge(or *Resource, rps map[string]*RequiredProvider) hcl.Dia
if len(or.Managed.IgnoreChanges) != 0 {
r.Managed.IgnoreChanges = or.Managed.IgnoreChanges
}
if or.Managed.IgnoreAllChanges {
r.Managed.IgnoreAllChanges = true
}
if or.Managed.PreventDestroySet {
r.Managed.PreventDestroy = or.Managed.PreventDestroy
r.Managed.PreventDestroySet = or.Managed.PreventDestroySet