Skip to content

Commit

Permalink
Merge pull request #8559 from joelthompson/emr_domain_join_user
Browse files Browse the repository at this point in the history
Not retrieve EMR AD Domain Join User from AWS API
  • Loading branch information
bflad authored Jul 1, 2019
2 parents 16a3cb6 + 1d26666 commit bcbf76c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/resource_aws_emr_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ func flattenEmrKerberosAttributes(d *schema.ResourceData, kerberosAttributes *em

// Do not set from API:
// * ad_domain_join_password
// * ad_domain_join_user
// * cross_realm_trust_principal_password
// * kdc_admin_password

Expand All @@ -1564,8 +1565,8 @@ func flattenEmrKerberosAttributes(d *schema.ResourceData, kerberosAttributes *em
m["ad_domain_join_password"] = v.(string)
}

if kerberosAttributes.ADDomainJoinUser != nil {
m["ad_domain_join_user"] = *kerberosAttributes.ADDomainJoinUser
if v, ok := d.GetOk("kerberos_attributes.0.ad_domain_join_user"); ok {
m["ad_domain_join_user"] = v.(string)
}

if v, ok := d.GetOk("kerberos_attributes.0.cross_realm_trust_principal_password"); ok {
Expand Down

0 comments on commit bcbf76c

Please sign in to comment.