dot: only draw provider close on `terraform greph -verbose`

This commit is contained in:
Paul Hinze 2015-06-24 17:36:45 -05:00
parent 6fdbca8e58
commit 38efe4cb80
1 changed files with 3 additions and 0 deletions

View File

@ -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",