Skip to content

Commit

Permalink
steampipe check --dry-run should not display control summary. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu authored Oct 28, 2021
1 parent dbd0418 commit 9622e13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions control/controldisplay/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package controldisplay
import (
"strings"

"github.com/spf13/viper"
"github.com/turbot/steampipe/constants"
"github.com/turbot/steampipe/control/controlexecute"
)

Expand Down Expand Up @@ -36,6 +38,10 @@ func (r TableRenderer) Render() string {
}

func (r TableRenderer) renderSummary() string {
// no need to render the summary when the dry-run flag is set
if viper.GetBool(constants.ArgDryRun) {
return ""
}
return NewSummaryRenderer(r.resultTree, r.width).Render()
}

Expand Down

0 comments on commit 9622e13

Please sign in to comment.