Skip to content

Commit

Permalink
Fix wrong variable referenced (microsoft#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored and Dmarch28 committed Mar 4, 2021
1 parent 58c6be6 commit 8ca1c01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/containers/restartContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function restartContainer(context: IActionContext, node?: Container

await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, title: localize('vscode-docker.commands.containers.restart.restarting', 'Restarting Container(s)...') }, async () => {
await Promise.all(nodes.map(async n => {
await ext.dockerClient.restartContainer(context, node.containerId);
await ext.dockerClient.restartContainer(context, n.containerId);
}));
});
}
2 changes: 1 addition & 1 deletion src/commands/containers/startContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function startContainer(context: IActionContext, node?: ContainerTr

await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, title: localize('vscode-docker.commands.containers.start.starting', 'Starting Container(s)...') }, async () => {
await Promise.all(nodes.map(async n => {
await ext.dockerClient.startContainer(context, node.containerId);
await ext.dockerClient.startContainer(context, n.containerId);
}));
});
}
2 changes: 1 addition & 1 deletion src/commands/containers/stopContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function stopContainer(context: IActionContext, node?: ContainerTre

await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, title: localize('vscode-docker.commands.containers.stop.stopping', 'Stopping Container(s)...') }, async () => {
await Promise.all(nodes.map(async n => {
await ext.dockerClient.stopContainer(context, node.containerId);
await ext.dockerClient.stopContainer(context, n.containerId);
}));
});
}

0 comments on commit 8ca1c01

Please sign in to comment.