Skip to content

Commit

Permalink
Fix storage account validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba committed Dec 11, 2017
1 parent 9d8fdb2 commit d74e01c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion appservice/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-azureappservice",
"author": "Microsoft Corporation",
"version": "0.7.1",
"version": "0.7.2",
"description": "Common tools for developing Azure App Service extensions for VS Code",
"tags": [
"azure",
Expand Down
18 changes: 9 additions & 9 deletions appservice/src/createAppService/StorageAccountStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ export class StorageAccountStep extends WizardStep {
let newAccountName: string;
newAccountName = await this.showInputBox({
value: suggestedName,
prompt: 'Enter the name of the new storage account.',
validateInput: async (value: string): Promise <string | undefined> => {
value = value ? value.trim() : '';
const nameAvailabilityResult: CheckNameAvailabilityResult = await storageClient.storageAccounts.checkNameAvailability(newAccountName);
if (!nameAvailabilityResult.nameAvailable) {
return nameAvailabilityResult.message;
}
return undefined;
prompt: 'Enter the name of the new storage account.',
validateInput: async (value: string): Promise<string | undefined> => {
value = value ? value.trim() : '';
const nameAvailabilityResult: CheckNameAvailabilityResult = await storageClient.storageAccounts.checkNameAvailability(value);
if (!nameAvailabilityResult.nameAvailable) {
return nameAvailabilityResult.message;
}
});
return undefined;
}
});

this._account = {
name: newAccountName.trim(),
Expand Down

0 comments on commit d74e01c

Please sign in to comment.