mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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.
|
||||
for _, s := range g.UpEdges(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
|
||||
}
|
||||
|
||||
// GraphProxyEdge is the edge that is used for proxied edges.
|
||||
type GraphProxyEdge struct {
|
||||
dag.Edge
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user