From 7091be26349166df090c45da973def27e18c298c Mon Sep 17 00:00:00 2001 From: Thibault Cohen Date: Thu, 6 Jun 2019 09:21:59 -0400 Subject: [PATCH] Fix PR comments --- azurerm/data_source_kubernetes_cluster.go | 9 +++++---- azurerm/resource_arm_kubernetes_cluster.go | 1 + vendor/modules.txt | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/azurerm/data_source_kubernetes_cluster.go b/azurerm/data_source_kubernetes_cluster.go index ed53d4e0a014e..42cc01ff99e7f 100644 --- a/azurerm/data_source_kubernetes_cluster.go +++ b/azurerm/data_source_kubernetes_cluster.go @@ -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} diff --git a/azurerm/resource_arm_kubernetes_cluster.go b/azurerm/resource_arm_kubernetes_cluster.go index e507424e37e83..026459eceda17 100644 --- a/azurerm/resource_arm_kubernetes_cluster.go +++ b/azurerm/resource_arm_kubernetes_cluster.go @@ -318,6 +318,7 @@ func resourceArmKubernetesCluster() *schema.Resource { "admin_password": { Type: schema.TypeString, Optional: true, + Sensitive: true, ValidateFunc: validate.NoEmptyStrings, }, }, diff --git a/vendor/modules.txt b/vendor/modules.txt index 83bb8426fbfa4..fb42cefd478ab 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -19,7 +19,7 @@ github.com/Azure/azure-sdk-for-go/services/cognitiveservices/mgmt/2017-04-18/cog github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-06-01/compute github.com/Azure/azure-sdk-for-go/services/containerinstance/mgmt/2018-10-01/containerinstance github.com/Azure/azure-sdk-for-go/services/containerregistry/mgmt/2017-10-01/containerregistry -github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-02-01/containerservice +github.com/Azure/azure-sdk-for-go/services/containerservice/mgmt/2019-04-30/containerservice github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb github.com/Azure/azure-sdk-for-go/services/databricks/mgmt/2018-04-01/databricks github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory