From 54d16013bb15b5f149162f266d1ba0d45a1850a3 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Fri, 31 Mar 2017 20:02:39 +0100 Subject: [PATCH] Add comment --- gateway/handlers/functionshandler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gateway/handlers/functionshandler.go b/gateway/handlers/functionshandler.go index 8ad50e3d..1b73fd0c 100644 --- a/gateway/handlers/functionshandler.go +++ b/gateway/handlers/functionshandler.go @@ -112,6 +112,8 @@ func makeSpec(request *requests.CreateFunctionRequest) swarm.ServiceSpec { swarm.NetworkAttachmentConfig{Target: request.Network}, } + // TODO: request.EnvProcess should only be set if it's not nil, otherwise we override anything in the Docker image already + spec := swarm.ServiceSpec{ TaskTemplate: swarm.TaskSpec{ RestartPolicy: &swarm.RestartPolicy{