Ensure that the current docker image is listed when editing an execution environment

This commit is contained in:
Sebastian Serth
2021-07-07 20:05:20 +02:00
parent 038ffd4afb
commit 72e4026d6c

View File

@ -22,7 +22,10 @@ class ExecutionEnvironmentsController < ApplicationController
destroy_and_respond(object: @execution_environment) destroy_and_respond(object: @execution_environment)
end end
def edit; end def edit
# Add the current execution_environment if not already present in the list
@docker_images |= [@execution_environment.docker_image]
end
def execute_command def execute_command
@docker_client = DockerClient.new(execution_environment: @execution_environment) @docker_client = DockerClient.new(execution_environment: @execution_environment)