Skip to content

Commit

Permalink
Merge pull request #2081 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…2076-to-release-1.24

[release-1.24] Use correct subnet name in reconcileFrontendIPConfigs()
  • Loading branch information
k8s-ci-robot committed Jul 26, 2022
2 parents c622e3b + edc969b commit e6a08d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provider/azure_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ func (az *Cloud) reconcileFrontendIPConfigs(clusterName string, service *v1.Serv
}

if !existsSubnet {
return nil, toDeleteConfigs, false, fmt.Errorf("ensure(%s): lb(%s) - failed to get subnet: %s/%s", serviceName, lbName, az.VnetName, az.SubnetName)
return nil, toDeleteConfigs, false, fmt.Errorf("ensure(%s): lb(%s) - failed to get subnet: %s/%s", serviceName, lbName, az.VnetName, *subnetName)
}

configProperties := network.FrontendIPConfigurationPropertiesFormat{
Expand Down

0 comments on commit e6a08d4

Please sign in to comment.