1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 06:40:31 +00:00

Fix golint errors

This commit is contained in:
Josh Curl
2016-11-28 00:06:00 -08:00
parent fa1dc760f2
commit a7c34b9855
35 changed files with 205 additions and 212 deletions

View File

@@ -25,8 +25,8 @@ func NewClientFactory(opts composeClient.Options) (project.ClientFactory, error)
userOpts := opts
systemOpts := opts
userOpts.Host = config.DOCKER_HOST
systemOpts.Host = config.DOCKER_SYSTEM_HOST
userOpts.Host = config.DockerHost
systemOpts.Host = config.SystemDockerHost
userClient, err := composeClient.Create(userOpts)
if err != nil {
@@ -46,11 +46,11 @@ func NewClientFactory(opts composeClient.Options) (project.ClientFactory, error)
func (c *ClientFactory) Create(service project.Service) dockerclient.APIClient {
if IsSystemContainer(service.Config()) {
waitFor(&c.systemOnce, c.systemClient, config.DOCKER_SYSTEM_HOST)
waitFor(&c.systemOnce, c.systemClient, config.SystemDockerHost)
return c.systemClient
}
waitFor(&c.userOnce, c.userClient, config.DOCKER_HOST)
waitFor(&c.userOnce, c.userClient, config.DockerHost)
return c.userClient
}