ResourceInstanceObject needs to return a copy

This commit is contained in:
James Bardin 2018-12-17 16:37:18 -05:00
parent 82f5f50fe7
commit 292535820d
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ func (s *SyncState) ResourceInstanceObject(addr addrs.AbsResourceInstance, gen G
if inst == nil {
return nil
}
return inst.GetGeneration(gen)
return inst.GetGeneration(gen).DeepCopy()
}
// SetResourceMeta updates the resource-level metadata for the resource at