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 <aaron.lehmann@docker.com> Upstream-commit: 9d127f8de3fa489b2c0d896dd9612f43e45f7cdd Component: engine
This commit is contained in:
@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user