terraform: proxy uses custom edge
This commit is contained in:
parent
f24a1533f2
commit
7d28e980a5
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue