Skip to content

Commit

Permalink
ResourceInstanceObject needs to return a copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jbardin committed Dec 17, 2018
1 parent 82f5f50 commit 2925358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion states/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2925358

Please sign in to comment.