Skip to content

Commit

Permalink
Reorder enableNodePublicIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Aris van Ommeren committed Jun 1, 2021
1 parent 5aa0c7c commit 57b4042
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,11 @@ func flattenKubernetesClusterDataSourceAgentPoolProfiles(input *[]containerservi
count = int(*profile.Count)
}

enableNodePublicIP := false
if profile.EnableNodePublicIP != nil {
enableNodePublicIP = *profile.EnableNodePublicIP
}

minCount := 0
if profile.MinCount != nil {
minCount = int(*profile.MinCount)
Expand Down Expand Up @@ -1036,11 +1041,6 @@ func flattenKubernetesClusterDataSourceAgentPoolProfiles(input *[]containerservi
nodeTaints = *profile.NodeTaints
}

enableNodePublicIP := false
if profile.EnableNodePublicIP != nil {
enableNodePublicIP = *profile.EnableNodePublicIP
}

vmSize := ""
if profile.VMSize != nil {
vmSize = *profile.VMSize
Expand Down

0 comments on commit 57b4042

Please sign in to comment.