Skip to content

Commit

Permalink
treat non-json values as not matching (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
coryflucas authored Dec 16, 2021
1 parent 9173627 commit 87683e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 87683e9

Please sign in to comment.