remove incorrect comment
The CreateBeforeDestroy transformer correctly handles the edge referred to in the comment, and going forward it will probably be easier to use the knowledge of this edge for CBD anyway.
This commit is contained in:
parent
8510aa81ca
commit
5ed7d17265
|
@ -122,12 +122,6 @@ func (t *DestroyEdgeTransformer) Transform(g *Graph) error {
|
|||
|
||||
for _, resAddr := range ri.StateDependencies() {
|
||||
for _, desDep := range destroyersByResource[resAddr.String()] {
|
||||
// TODO: don't connect this if c is CreateBeforeDestroy.
|
||||
// This will require getting the actual change action at
|
||||
// this point, since the lifecycle may have been forced
|
||||
// by a dependent. This should prevent needing to prune
|
||||
// the edge back out in CBDEdgeTransformer, and allow
|
||||
// non-CBD nodes to depend on CBD destroys directly.
|
||||
log.Printf("[TRACE] DestroyEdgeTransformer: %s has stored dependency of %s\n", dag.VertexName(c), dag.VertexName(desDep))
|
||||
g.Connect(dag.BasicEdge(c, desDep))
|
||||
|
||||
|
|
Loading…
Reference in New Issue