remove unneeded partial outputs
filterPartialOutputs was not taking into account that some dependent resources might yet be removed from the graph. Check that they are not in the targeted set before declaring that the output remain.
This commit is contained in:
parent
e5f8adfc1a
commit
a5c4f7e08e
|
@ -217,6 +217,12 @@ func filterPartialOutputs(v interface{}, targetedNodes *dag.Set, g *Graph) bool
|
|||
if _, ok := d.(*NodeCountBoundary); ok {
|
||||
continue
|
||||
}
|
||||
|
||||
if !targetedNodes.Include(d) {
|
||||
// this one is going to be removed, so it doesn't count
|
||||
continue
|
||||
}
|
||||
|
||||
// as soon as we see a real dependency, we mark this as
|
||||
// non-removable
|
||||
return true
|
||||
|
|
Loading…
Reference in New Issue