Merge pull request #21979 from bpetermannS11/fix-crash-21896
Fix for crash #21896
This commit is contained in:
commit
3631c16831
|
@ -696,7 +696,7 @@ func (d *evaluationStateData) getResourceInstancesAll(addr addrs.Resource, rng t
|
||||||
ty := schema.ImpliedType()
|
ty := schema.ImpliedType()
|
||||||
key := addrs.IntKey(i)
|
key := addrs.IntKey(i)
|
||||||
is, exists := rs.Instances[key]
|
is, exists := rs.Instances[key]
|
||||||
if exists {
|
if exists && is.Current != nil {
|
||||||
instAddr := addr.Instance(key).Absolute(d.ModulePath)
|
instAddr := addr.Instance(key).Absolute(d.ModulePath)
|
||||||
|
|
||||||
// Prefer pending value in plan if present. See getResourceInstanceSingle
|
// Prefer pending value in plan if present. See getResourceInstanceSingle
|
||||||
|
|
Loading…
Reference in New Issue