Convert resource group name in Azure provider ID to lower cases

This commit is contained in:
Pengfei Ni
2019-03-04 13:50:24 +08:00
parent 37f0138278
commit 1d61d8d4a4
9 changed files with 96 additions and 11 deletions

View File

@@ -152,7 +152,7 @@ func (ss *scaleSet) newAvailabilitySetNodesCache() (*timedCache, error) {
func buildVmssCacheKey(resourceGroup, name string) string {
// key is composed of <resourceGroup>#<vmName>
return fmt.Sprintf("%s%s%s", resourceGroup, vmssCacheSeparator, name)
return fmt.Sprintf("%s%s%s", strings.ToLower(resourceGroup), vmssCacheSeparator, name)
}
func extractVmssCacheKey(key string) (string, string, error) {