mirror of https://github.com/docker/docs.git
				
				
				
			Fix vet issues
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
		
							parent
							
								
									6462e7ecfa
								
							
						
					
					
						commit
						946712b1f7
					
				|  | @ -305,7 +305,10 @@ func attemptGetHostState(h *host.Host, stateQueryChan chan<- HostListItem) { | |||
| 	if err == nil && url != "" { | ||||
| 		// PERFORMANCE: Reuse the url instead of asking the host again.
 | ||||
| 		// This reduces the number of calls to the drivers
 | ||||
| 		dockerHost := &mcndockerclient.RemoteDocker{url, h.AuthOptions()} | ||||
| 		dockerHost := &mcndockerclient.RemoteDocker{ | ||||
| 			HostURL:    url, | ||||
| 			AuthOption: h.AuthOptions(), | ||||
| 		} | ||||
| 		dockerVersion, err = mcndockerclient.DockerVersion(dockerHost) | ||||
| 
 | ||||
| 		if err != nil { | ||||
|  |  | |||
|  | @ -35,7 +35,10 @@ func configureSwarm(p Provisioner, swarmOptions swarm.Options, authOptions auth. | |||
| 	dockerPort := "2376" | ||||
| 	dockerDir := p.GetDockerOptionsDir() | ||||
| 	dockerHost := fmt.Sprintf("tcp://%s:%s", ip, dockerPort) | ||||
| 	dockerClient := mcndockerclient.RemoteDocker{dockerHost, &authOptions} | ||||
| 	dockerClient := mcndockerclient.RemoteDocker{ | ||||
| 		HostURL:    dockerHost, | ||||
| 		AuthOption: &authOptions, | ||||
| 	} | ||||
| 	advertiseInfo := fmt.Sprintf("%s:%s", ip, dockerPort) | ||||
| 
 | ||||
| 	if swarmOptions.Master { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue