From 87683e98c52aca0387eb0feed16bcac0ee71227f Mon Sep 17 00:00:00 2001 From: Cory Lucas Date: Thu, 16 Dec 2021 15:17:03 -0500 Subject: [PATCH] treat non-json values as not matching (#1014) --- util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/util.go b/util/util.go index 5eb193687..97a75166e 100644 --- a/util/util.go +++ b/util/util.go @@ -26,7 +26,7 @@ func JsonDiffSuppress(k, old, new string, d *schema.ResourceData) bool { err = json.Unmarshal([]byte(new), &newJSON) if err != nil { log.Printf("[WARN] Version of %q in config is not valid JSON: %s", k, err) - return true + return false } return reflect.DeepEqual(oldJSON, newJSON) }