Applying review comments.
This commit is contained in:
Родитель
a4284d310a
Коммит
42e71f5f9f
|
@ -728,6 +728,10 @@ ServiceManagementService.prototype.regenerateStorageAccountKeys = function(servi
|
|||
validateStringArgument(serviceName, 'serviceName', 'deleteDeployment');
|
||||
validateObjectArgument(callback, 'callback', 'deleteDeployment');
|
||||
|
||||
if (keyType.toLowerCase() !== 'primary' && keyType.toLowerCase() !== 'secondary') {
|
||||
throw new Error('Invalid storage account type');
|
||||
}
|
||||
|
||||
var path = '/' + this.subscriptionId + '/services/storageservices/' + serviceName + '/keys?action=regenerate';
|
||||
var webResource = WebResource.post(path);
|
||||
webResource.withOkCode(HttpConstants.HttpResponseCodes.OK_CODE, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче