terraform: proxy uses custom edge

This commit is contained in:
Mitchell Hashimoto 2015-05-01 11:41:01 -07:00
parent f24a1533f2
commit 7d28e980a5
1 changed files with 8 additions and 1 deletions

View File

@ -46,10 +46,17 @@ func (t *ProxyTransformer) Transform(g *Graph) error {
// a visual explanation. // a visual explanation.
for _, s := range g.UpEdges(v).List() { for _, s := range g.UpEdges(v).List() {
for _, t := range g.DownEdges(v).List() { for _, t := range g.DownEdges(v).List() {
g.Connect(dag.BasicEdge(s, t)) g.Connect(GraphProxyEdge{
Edge: dag.BasicEdge(s, t),
})
} }
} }
} }
return nil return nil
} }
// GraphProxyEdge is the edge that is used for proxied edges.
type GraphProxyEdge struct {
dag.Edge
}