Merge pull request #89002 from ArchangelSDY/azure-vmss-cache

Fix VMSS cache content
This commit is contained in:
Kubernetes Prow Robot 2020-03-11 00:23:35 -07:00 committed by GitHub
commit cb38560422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,8 @@ func (ss *scaleSet) newVMSSCache() (*azcache.TimedCache, error) {
return nil, rerr.Error() return nil, rerr.Error()
} }
for _, scaleSet := range allScaleSets { for i := range allScaleSets {
scaleSet := allScaleSets[i]
if scaleSet.Name == nil || *scaleSet.Name == "" { if scaleSet.Name == nil || *scaleSet.Name == "" {
klog.Warning("failed to get the name of VMSS") klog.Warning("failed to get the name of VMSS")
continue continue