terraform: disable destroy mode for flattened nodes
This commit is contained in:
parent
bbb065d1ad
commit
542ddb881a
|
@ -267,6 +267,13 @@ func (n *GraphNodeConfigResourceFlat) ProvidedBy() []string {
|
||||||
prefix)
|
prefix)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GraphNodeDestroyable impl.
|
||||||
|
func (n *GraphNodeConfigResourceFlat) DestroyNode(GraphNodeDestroyMode) GraphNodeDestroy {
|
||||||
|
// Disable destroy mode for flattened resources since we already
|
||||||
|
// did this within the original subgraph.
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// graphNodeResourceDestroy represents the logical destruction of a
|
// graphNodeResourceDestroy represents the logical destruction of a
|
||||||
// resource. This node doesn't mean it will be destroyed for sure, but
|
// resource. This node doesn't mean it will be destroyed for sure, but
|
||||||
// instead that if a destroy were to happen, it must happen at this point.
|
// instead that if a destroy were to happen, it must happen at this point.
|
||||||
|
|
Loading…
Reference in New Issue