Merge pull request #11015 from t1cg/caw/fixNullPointerOnUpdate

azure: fix null pointer when updating in place cluster
This commit is contained in:
Kubernetes Prow Robot 2021-03-12 10:08:18 -08:00 committed by GitHub
commit 6d3c7d4117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func (s *VMScaleSet) Find(c *fi.Context) (*VMScaleSet, error) {
}
var loadBalancerID *loadBalancerID
if *ipConfig.LoadBalancerBackendAddressPools != nil {
if ipConfig.LoadBalancerBackendAddressPools != nil {
for _, i := range *ipConfig.LoadBalancerBackendAddressPools {
if !strings.Contains(*i.ID, "api") {
continue