Merge pull request #90323 from gaurav1086/azure_cache_map_cleanup

[Provider/Azure] cache map remove exists check
This commit is contained in:
Kubernetes Prow Robot 2020-04-22 17:02:51 -07:00 committed by GitHub
commit 68a9a07a79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,9 +173,7 @@ func (ss *scaleSet) newVMSSVirtualMachinesCache() (*azcache.TimedCache, error) {
}
localCache.Store(computerName, vmssVMCacheEntry)
if _, exists := oldCache[computerName]; exists {
delete(oldCache, computerName)
}
delete(oldCache, computerName)
}
}