From 9d127f8de3fa489b2c0d896dd9612f43e45f7cdd Mon Sep 17 00:00:00 2001 From: Aaron Lehmann Date: Thu, 9 Mar 2017 17:58:12 -0800 Subject: [PATCH] cluster: Fix shadowed resp variable The response would never reach the client because it was being redeclared in the current scope. Signed-off-by: Aaron Lehmann --- daemon/cluster/services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/cluster/services.go b/daemon/cluster/services.go index ec5a58c02d..865f424c2a 100644 --- a/daemon/cluster/services.go +++ b/daemon/cluster/services.go @@ -193,7 +193,7 @@ func (c *Cluster) UpdateService(serviceIDOrName string, version uint64, spec typ } } - resp := &apitypes.ServiceUpdateResponse{} + resp = &apitypes.ServiceUpdateResponse{} // pin image by digest if os.Getenv("DOCKER_SERVICE_PREFER_OFFLINE_IMAGE") != "1" {