Skip to content

Commit

Permalink
Changes required for sdkv15
Browse files Browse the repository at this point in the history
  • Loading branch information
tombuildsstuff committed Apr 10, 2018
1 parent a71a92f commit 5157b9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,9 @@ func flattenAzureRmKubernetesClusterAccessProfile(profile *containerservice.Mana
if profile != nil {
if accessProfile := profile.AccessProfile; accessProfile != nil {
if kubeConfigRaw := accessProfile.KubeConfig; kubeConfigRaw != nil {
if kubeConfig, err := kubernetes.ParseKubeConfig(kubeConfigRaw); err == nil && kubeConfig != nil {
return kubeConfigRaw, flattenKubeConfig(kubeConfig)
rawConfig := utils.String(string(*kubeConfigRaw))
if kubeConfig, err := kubernetes.ParseKubeConfig(rawConfig); err == nil && kubeConfig != nil {
return rawConfig, flattenKubeConfig(kubeConfig)
}
}
}
Expand Down

0 comments on commit 5157b9a

Please sign in to comment.