replacing orphaned with removed
This commit is contained in:
parent
15ea04af8a
commit
ccc9b1d767
|
@ -1113,9 +1113,9 @@ func (m *ModuleState) Orphans(c *config.Config) []string {
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
// OrphanOutputs returns a list of outputs that are in the State but aren't
|
// RemovedOutputs returns a list of outputs that are in the State but aren't
|
||||||
// present in the configuration itself.
|
// present in the configuration itself.
|
||||||
func (m *ModuleState) OrphanOutputs(c *config.Config) []string {
|
func (m *ModuleState) RemovedOutputs(c *config.Config) []string {
|
||||||
m.Lock()
|
m.Lock()
|
||||||
defer m.Unlock()
|
defer m.Unlock()
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ func (t *OrphanOutputTransformer) transform(g *Graph, ms *ModuleState) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// add all the orphaned outputs to the graph
|
// add all the orphaned outputs to the graph
|
||||||
for _, n := range ms.OrphanOutputs(c) {
|
for _, n := range ms.RemovedOutputs(c) {
|
||||||
g.Add(&NodeOutputOrphan{OutputName: n, PathValue: path})
|
g.Add(&NodeOutputOrphan{OutputName: n, PathValue: path})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue