Fix a bug whereby AWS elasticsearch domain access_policy will

always appear changed because of a missing normalizeJson().
This commit is contained in:
Grisha Trubetskoy 2015-12-09 23:29:38 -05:00
parent 07f398fb3b
commit 6fbfd99ace
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ func resourceAwsElasticSearchDomainRead(d *schema.ResourceData, meta interface{}
ds := out.DomainStatus ds := out.DomainStatus
d.Set("access_policies", *ds.AccessPolicies) d.Set("access_policies", normalizeJson(*ds.AccessPolicies))
err = d.Set("advanced_options", pointersMapToStringList(ds.AdvancedOptions)) err = d.Set("advanced_options", pointersMapToStringList(ds.AdvancedOptions))
if err != nil { if err != nil {
return err return err