terraform: get proper state representation of expanded resources

This commit is contained in:
Mitchell Hashimoto 2015-02-12 11:57:15 -08:00
parent 4ccb12508a
commit 8fc75ebb28
1 changed files with 5 additions and 0 deletions

View File

@ -195,6 +195,11 @@ func (n *graphNodeExpandedResource) stateId() string {
return fmt.Sprintf("%s.%d", n.Resource.Id(), n.Index)
}
// GraphNodeStateRepresentative impl.
func (n *graphNodeExpandedResource) StateId() []string {
return []string{n.stateId()}
}
// graphNodeExpandedResourceDestroy represents an expanded resource that
// is to be destroyed.
type graphNodeExpandedResourceDestroy struct {