Skip to content

Commit

Permalink
data.azurerm_kubernetes_cluster - Fix nil panic by correcting nil c…
Browse files Browse the repository at this point in the history
…heck expression (#21850)
  • Loading branch information
lonegunmanb authored May 19, 2023
1 parent 4d815f3 commit 2e26297
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -896,12 +896,12 @@ func flattenKubernetesClusterDataSourceStorageProfile(input *managedclusters.Man
}

diskVersion := ""
if input.FileCSIDriver != nil {
if input.DiskCSIDriver != nil {
diskVersion = *input.DiskCSIDriver.Version
}

fileEnabled := true
if input.DiskCSIDriver != nil {
if input.FileCSIDriver != nil {
fileEnabled = *input.FileCSIDriver.Enabled
}

Expand Down

0 comments on commit 2e26297

Please sign in to comment.