terraform: compare diffs on shadow Apply
This commit is contained in:
parent
7f04b33d3d
commit
9a876f65ba
|
@ -523,7 +523,13 @@ func (p *shadowResourceProviderShadow) Apply(
|
||||||
p.ErrorLock.Unlock()
|
p.ErrorLock.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: compare diffs
|
if !diff.Equal(result.Diff) {
|
||||||
|
p.ErrorLock.Lock()
|
||||||
|
p.Error = multierror.Append(p.Error, fmt.Errorf(
|
||||||
|
"Apply: unequal diffs (real, then shadow):\n\n%#v\n\n%#v",
|
||||||
|
result.Diff, diff))
|
||||||
|
p.ErrorLock.Unlock()
|
||||||
|
}
|
||||||
|
|
||||||
return result.Result, result.ResultErr
|
return result.Result, result.ResultErr
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue