From 1602b7db12e2bd188e1c07e4e43387914caf77ea Mon Sep 17 00:00:00 2001 From: Daniel Corbett <38925638+daniel-corbett@users.noreply.github.com> Date: Mon, 22 May 2023 18:45:46 -0400 Subject: [PATCH] BUG/MINOR: rules: suppress requestLogging default (again) (#176) 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. --- provider/lib.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/lib.go b/provider/lib.go index 77fcc78..8e7d295 100644 --- a/provider/lib.go +++ b/provider/lib.go @@ -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