Skip to content

Commit

Permalink
BUG/MINOR: rules: suppress requestLogging default (again) (#176)
Browse files Browse the repository at this point in the history
In e293b90 (BUG/MINOR: rules: suppress requestLogging default), an
attempt to suppress the diff creation when requestlogging was not
specified (e.g. default) was made. However, it seems that the patch
confused "new" and "old" values. This commit properly swaps the order
and produces the expected results.
  • Loading branch information
daniel-corbett authored May 22, 2023
1 parent dd75aee commit 1602b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func suppressEquivalentTrimSpaceDiffs(k, old, new string, d *schema.ResourceData
}

func suppressRequestLoggingDefaultDiffs(k, old, new string, d *schema.ResourceData) bool {
if old == "" && new == "sampled" {
if new == "" && old == "sampled" {
return true
}
return false
Expand Down

0 comments on commit 1602b7d

Please sign in to comment.