Skip to content

Commit 12541f2

Browse files
committed
Updated code to fix the tests run
1 parent aeb7526 commit 12541f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ResourceManager/Sql/Commands.Sql/Common/AzureEndpointsCommunicator.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ public async Task<Dictionary<StorageKeyKind, string>> GetStorageKeysAsync(string
8686
SqlManagementClient client = GetCurrentSqlClient("none");
8787

8888
string url = Context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ServiceManagement).ToString();
89-
url = url + "/subscriptions/" + (client.Credentials.SubscriptionId != null ? client.Credentials.SubscriptionId.Trim() : "");
89+
if (!url.EndsWith("/"))
90+
{
91+
url = url + "/";
92+
}
93+
94+
url = url + "subscriptions/" + (client.Credentials.SubscriptionId != null ? client.Credentials.SubscriptionId.Trim() : "");
9095
url = url + "/resourceGroups/" + resourceGroupName;
9196
url = url + "/providers/Microsoft.ClassicStorage/storageAccounts/" + storageAccountName;
9297
url = url + "/listKeys?api-version=2014-06-01";

0 commit comments

Comments
 (0)