Skip to content

Commit

Permalink
Merge pull request #81 from rosanch/roy/fix79
Browse files Browse the repository at this point in the history
Roy/fix79
  • Loading branch information
rosanch authored Sep 19, 2018
2 parents 039b80c + 3b723e3 commit 4b1e21b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions commands/azureCommands/run-buildTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export async function runBuildTask(context?: TaskNode): Promise<any> {

const client = AzureUtilityManager.getInstance().getContainerRegistryManagementClient(subscription);
let runRequest: TaskRunRequest = {
type: 'Task',
type: 'TaskRunRequest',
taskName: taskName
};

try {
await client.registries.scheduleRun(resourceGroup.name, registry.name, runRequest);
let taskRun = await client.registries.scheduleRun(resourceGroup.name, registry.name, runRequest);
vscode.window.showInformationMessage(`Successfully ran the Task: ${taskName} with ID: ${taskRun.runId}`);
} catch (err) {
ext.outputChannel.append(err);
vscode.window.showErrorMessage(`Failed to ran the Task: ${taskName}`);
}
vscode.window.showInformationMessage(`Successfully ran the Task, ${taskName}`);

}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
},
{
"command": "vscode-docker.run-ACR-BuildTask",
"title": "Run a Task",
"title": "Run Task",
"category": "Docker"
},
{
Expand Down

0 comments on commit 4b1e21b

Please sign in to comment.