Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai committed Aug 11, 2022
1 parent bf413b0 commit bf37309
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/services/keyvault/key_vault_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,9 @@ func resourceKeyVaultRead(d *pluginsdk.ResourceData, meta interface{}) error {
d.Set("enabled_for_template_deployment", props.EnabledForTemplateDeployment)
d.Set("enable_rbac_authorization", props.EnableRbacAuthorization)
d.Set("purge_protection_enabled", props.EnablePurgeProtection)
d.Set("public_network_access_enabled", *props.PublicNetworkAccess == "Enabled")

if v := props.PublicNetworkAccess; v != nil {
d.Set("public_network_access_enabled", *v == "Enabled")
}
d.Set("vault_uri", props.VaultURI)

// @tombuildsstuff: the API doesn't return this field if it's not configured
Expand Down

0 comments on commit bf37309

Please sign in to comment.