File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -140,19 +140,12 @@ func detectCloudFromConnectionString(connectionString string) (CloudEndpoints, e
140140 return CloudEndpoints {}, fmt .Errorf ("connection string is empty" )
141141 }
142142
143- connStrLower := strings .ToLower (connectionString )
144-
145143 for _ , cloud := range SupportedClouds {
146- if strings .Contains (connStrLower , strings .ToLower (cloud .EventHubSuffix )) {
147- return cloud , nil
148- }
149- if strings .Contains (connStrLower , strings .ToLower (cloud .StorageSuffix )) {
144+ if strings .Contains (connectionString , cloud .EventHubSuffix + "/" ) {
150145 return cloud , nil
151146 }
152- }
153147
154- for _ , cloud := range SupportedClouds {
155- if cloud .Name == AzurePublic {
148+ if strings .Contains (connectionString , "EndpointSuffix=" + cloud .StorageSuffix ) {
156149 return cloud , nil
157150 }
158151 }
You can’t perform that action at this time.
0 commit comments