Skip to content

Commit

Permalink
Fix PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
titilambert committed Jun 6, 2019
1 parent 784bf57 commit f639f14
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 5,942 deletions.
9 changes: 5 additions & 4 deletions azurerm/data_source_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,12 +640,13 @@ func flattenKubernetesClusterDataSourceLinuxProfile(input *containerservice.Linu
}

func flattenKubernetesClusterDataSourceWindowsProfile(input *containerservice.ManagedClusterWindowsProfile) []interface{} {
if input == nil {
return []interface{}{}
}
values := make(map[string]interface{})

if profile := input; profile != nil {
if username := profile.AdminUsername; username != nil {
values["admin_username"] = *username
}
if username := input.AdminUsername; username != nil {
values["admin_username"] = *username
}

return []interface{}{values}
Expand Down
1 change: 1 addition & 0 deletions azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ func resourceArmKubernetesCluster() *schema.Resource {
"admin_password": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
ValidateFunc: validate.NoEmptyStrings,
},
},
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit f639f14

Please sign in to comment.