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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user