dot: only draw provider close on `terraform greph -verbose`
This commit is contained in:
parent
6fdbca8e58
commit
38efe4cb80
|
@ -342,6 +342,9 @@ func (n *graphNodeCloseProvider) CloseProviderName() string {
|
||||||
|
|
||||||
// GraphNodeDotter impl.
|
// GraphNodeDotter impl.
|
||||||
func (n *graphNodeCloseProvider) DotNode(name string, opts *GraphDotOpts) *dot.Node {
|
func (n *graphNodeCloseProvider) DotNode(name string, opts *GraphDotOpts) *dot.Node {
|
||||||
|
if !opts.Verbose {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return dot.NewNode(name, map[string]string{
|
return dot.NewNode(name, map[string]string{
|
||||||
"label": n.Name(),
|
"label": n.Name(),
|
||||||
"shape": "diamond",
|
"shape": "diamond",
|
||||||
|
|
Loading…
Reference in New Issue