Skip to content

Commit

Permalink
dot: only draw provider close on terraform greph -verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
phinze committed Jun 24, 2015
1 parent 6fdbca8 commit 38efe4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform/transform_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ func (n *graphNodeCloseProvider) CloseProviderName() string {

// GraphNodeDotter impl.
func (n *graphNodeCloseProvider) DotNode(name string, opts *GraphDotOpts) *dot.Node {
if !opts.Verbose {
return nil
}
return dot.NewNode(name, map[string]string{
"label": n.Name(),
"shape": "diamond",
Expand Down

0 comments on commit 38efe4c

Please sign in to comment.