From 863ce5d398b6b0cd756fe47a1d1f5665250acfd1 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Mon, 19 Oct 2015 17:48:36 +0200 Subject: [PATCH] Corrected position of setting the container status flags. --- lib/docker_client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docker_client.rb b/lib/docker_client.rb index 594d0bd2..5a1a001c 100644 --- a/lib/docker_client.rb +++ b/lib/docker_client.rb @@ -138,8 +138,8 @@ class DockerClient def execute_command(command, before_execution_block, output_consuming_block) #tries ||= 0 @container = DockerContainerPool.get_container(@execution_environment) - @container.status = :executing if @container + @container.status = :executing before_execution_block.try(:call) send_command(command, @container, &output_consuming_block) else @@ -153,8 +153,8 @@ class DockerClient def execute_websocket_command(command, before_execution_block, output_consuming_block) @container = DockerContainerPool.get_container(@execution_environment) - @container.status = :executing if @container + @container.status = :executing before_execution_block.try(:call) # todo catch exception if socket could not be created @socket ||= create_socket(@container)