Skip to content

Commit c4bcfb5

Browse files
Update API version lookup to be case-insensitive (Azure#33196)
Co-authored-by: Yao Kou <yaokou@microsoft.com>
1 parent 6fca3b2 commit c4bcfb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/resourcemanager/Azure.ResourceManager/src/Resources/Custom/ResourceProviderCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private async Task<Dictionary<string, string>> LoadResourceVersionsFromApiAsync(
8585

8686
private static Dictionary<string, string> GetVersionsFromResult(ResourceProviderResource results)
8787
{
88-
Dictionary<string, string> resourceVersions = new Dictionary<string, string>();
88+
Dictionary<string, string> resourceVersions = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
8989
foreach (var type in results.Data.ResourceTypes)
9090
{
9191
if (type.ApiVersions.Count == 0)

0 commit comments

Comments
 (0)