Skip to content
Browse files

Fixing reference.

  • Loading branch information...
1 parent 4b00ca5 commit cf3a4170ded10378f0d8e183d73113a37f096200 @andrerod andrerod committed
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/services/core/storageserviceclient.js
View
12 lib/services/core/storageserviceclient.js
@@ -93,7 +93,7 @@ StorageServiceClient.getStorageSettings = function (storageAccountOrConnectionSt
/**
* Gets the storage settings from the parameters or environment variables.
*
-* @param {string} [storageAccountOrConnectionString] The storage account or the connection string.
+* @param {string} [storageAccount] The storage account or the connection string.
* @param {string} [storageAccessKey] The storage access key.
* @param {string} [host] The host address.
*
@@ -102,8 +102,8 @@ StorageServiceClient.getStorageSettings = function (storageAccountOrConnectionSt
StorageServiceClient._getStorageSettingsExplicitOrEnvironment = function (storageAccount, storageAccessKey, host) {
var usePathStyleUri = false;
- if (!storageAccountOrConnectionString) {
- storageAccountOrConnectionString = process.env[ServiceClient.EnvironmentVariables.AZURE_STORAGE_ACCOUNT];
+ if (!storageAccount) {
+ storageAccount = process.env[ServiceClient.EnvironmentVariables.AZURE_STORAGE_ACCOUNT];
}
if (!storageAccessKey) {
@@ -111,9 +111,9 @@ StorageServiceClient._getStorageSettingsExplicitOrEnvironment = function (storag
}
// Default endpoints
- var blobendpoint = url.format({ protocol: 'http:', hostname: storageAccountOrConnectionString + '.' + ServiceClient.CLOUD_BLOB_HOST });
- var tableendpoint = url.format({ protocol: 'http:', hostname: storageAccountOrConnectionString + '.' + ServiceClient.CLOUD_TABLE_HOST });
- var queueendpoint = url.format({ protocol: 'http:', hostname: storageAccountOrConnectionString + '.' + ServiceClient.CLOUD_QUEUE_HOST });
+ var blobendpoint = url.format({ protocol: 'http:', hostname: storageAccount + '.' + ServiceClient.CLOUD_BLOB_HOST });
+ var tableendpoint = url.format({ protocol: 'http:', hostname: storageAccount + '.' + ServiceClient.CLOUD_TABLE_HOST });
+ var queueendpoint = url.format({ protocol: 'http:', hostname: storageAccount + '.' + ServiceClient.CLOUD_QUEUE_HOST });
if (host) {
var parsedHost = ServiceClient._parseHost(host);

0 comments on commit cf3a417

Please sign in to comment.
Something went wrong with that request. Please try again.