[Azure] cache map remove exists check

This commit is contained in:
Gaurav Singh 2020-04-20 22:40:06 -04:00
parent d6f44b0ea9
commit 59a28111be

View File

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