terraform: provisionedby prefixed

This commit is contained in:
Mitchell Hashimoto 2015-05-05 13:04:27 -07:00
parent d503cc2d82
commit 8c34e9a36a
1 changed files with 7 additions and 0 deletions

View File

@ -267,6 +267,13 @@ func (n *GraphNodeConfigResourceFlat) ProvidedBy() []string {
prefix)
}
func (n *GraphNodeConfigResourceFlat) ProvisionedBy() []string {
prefix := modulePrefixStr(n.PathValue)
return modulePrefixList(
n.GraphNodeConfigResource.ProvisionedBy(),
prefix)
}
// GraphNodeDestroyable impl.
func (n *GraphNodeConfigResourceFlat) DestroyNode(mode GraphNodeDestroyMode) GraphNodeDestroy {
// Get our parent destroy node. If we don't have any, just return