microsoft/SDN

Loop logic results in infinite loop

mnorrisbrcm opened this issue · 0 comments

while (($dnsResponse -eq $null) -or ($count -eq 30)) {

I found that the loop logic here causes an infinite loop unless all found Dns Server addresses resolve to the $RestName. If they don't then it will loop forever. The logic works if you use -and ($count -lt 30). Due to the -or the conditions will never both be false unless the name resolved.