Skip to content

Commit

Permalink
Use structure.SuppressJsonDiff
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorn committed Jun 17, 2021
1 parent 9a6d400 commit 835d0e5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/apimanagement/parse"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/apimanagement/schemaz"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/pluginsdk"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/suppress"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/validation"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils"
Expand Down Expand Up @@ -56,7 +55,7 @@ func resourceApiManagementApiSchema() *pluginsdk.Resource {
ValidateFunc: validation.StringIsNotEmpty,
DiffSuppressFunc: func(k, old, new string, d *pluginsdk.ResourceData) bool {
if d.Get("content_type") == "application/vnd.ms-azure-apim.swagger.definitions+json" || d.Get("content_type") == "application/vnd.oai.openapi.components+json" {
return suppress.JsonDiff(k, old, new, d)
return pluginsdk.SuppressJsonDiff(k, old, new, d)
}
return old == new
},
Expand Down
27 changes: 0 additions & 27 deletions azurerm/internal/tf/suppress/json.go

This file was deleted.

57 changes: 0 additions & 57 deletions azurerm/internal/tf/suppress/json_test.go

This file was deleted.

0 comments on commit 835d0e5

Please sign in to comment.