Skip to content

Commit

Permalink
Merge pull request #4489 from terraform-providers/p-hdinisght-gateway…
Browse files Browse the repository at this point in the history
…-password

Bug Fix: `azurerm_hdinight_...` diff suppress passwords that are `*****` from the api
  • Loading branch information
tombuildsstuff authored Oct 3, 2019
2 parents 78844f8 + 1a80a92 commit 16ca60a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azurerm/helpers/azure/hdinsight.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ func SchemaHDInsightsGateway() *schema.Schema {
Required: true,
ForceNew: true,
Sensitive: true,
// Azure returns the key as *****. We'll suppress that here.
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
return (new == d.Get(k).(string)) && (old == "*****")
},
},
},
},
Expand Down

0 comments on commit 16ca60a

Please sign in to comment.