Skip to content

Commit

Permalink
Update azurerm/internal/services/policy/policy_assignment_resource.go
Browse files Browse the repository at this point in the history
Co-authored-by: Steve <[email protected]>
  • Loading branch information
tyconsulting and jackofallops authored Jul 16, 2020
1 parent 6466926 commit e7a8c64
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ func policyAssignmentsMetadataDiffSuppressFunc(_, old, new string, _ *schema.Res
}

var newPolicyAssignmentsMetadata map[string]interface{}
errNew := json.Unmarshal([]byte(new), &newPolicyAssignmentsMetadata)
if errNew != nil {
return false
if new != "" {
errNew := json.Unmarshal([]byte(new), &newPolicyAssignmentsMetadata)
if errNew != nil {
return false
}
}

// Ignore the following keys if they're found in the metadata JSON
Expand Down

0 comments on commit e7a8c64

Please sign in to comment.