Skip to content

Commit

Permalink
Fix sensitive output error
Browse files Browse the repository at this point in the history
  • Loading branch information
im2nguyen committed Sep 28, 2021
1 parent 9aaa78e commit 1434ada
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions rso.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,15 @@ func (r *rover) GenerateResourceOverview() error {

// If before/after sensitive, set value to "Sensitive Value"
if !r.ShowSensitive {
if output.BeforeSensitive.(bool) {
output.Before = "Sensitive Value"
if output.BeforeSensitive != nil {
if output.BeforeSensitive.(bool) {
output.Before = "Sensitive Value"
}
}
if output.AfterSensitive.(bool) {
output.After = "Sensitive Value"
if output.AfterSensitive != nil {
if output.AfterSensitive.(bool) {
output.After = "Sensitive Value"
}
}
}

Expand Down

0 comments on commit 1434ada

Please sign in to comment.