From 8ca1c015f7957e56d33cadf328fccdaf83843501 Mon Sep 17 00:00:00 2001 From: "Brandon Waterloo [MSFT]" <36966225+bwateratmsft@users.noreply.github.com> Date: Thu, 9 Jul 2020 13:17:10 -0400 Subject: [PATCH] Fix wrong variable referenced (#2140) --- src/commands/containers/restartContainer.ts | 2 +- src/commands/containers/startContainer.ts | 2 +- src/commands/containers/stopContainer.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/containers/restartContainer.ts b/src/commands/containers/restartContainer.ts index a30d981292..6fe114d62b 100644 --- a/src/commands/containers/restartContainer.ts +++ b/src/commands/containers/restartContainer.ts @@ -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); })); }); } diff --git a/src/commands/containers/startContainer.ts b/src/commands/containers/startContainer.ts index 5037b6cac9..bc5657e392 100644 --- a/src/commands/containers/startContainer.ts +++ b/src/commands/containers/startContainer.ts @@ -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); })); }); } diff --git a/src/commands/containers/stopContainer.ts b/src/commands/containers/stopContainer.ts index f3b6bf955d..100dd27643 100644 --- a/src/commands/containers/stopContainer.ts +++ b/src/commands/containers/stopContainer.ts @@ -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); })); }); }