Skip to content

Commit

Permalink
Fix goformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Aug 17, 2016
1 parent e423f11 commit f28c9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func runDocker(hostname string, c *client.RancherClient, args []string) error {
return runDockerWithOutput(hostname, c, args, os.Stdout, os.Stderr)
}

func determineApiVersion(host *client.Host) string {
func determineAPIVersion(host *client.Host) string {
version := host.Labels["io.rancher.host.docker_version"]
parts := strings.Split(fmt.Sprint(version), ".")
if len(parts) != 2 {
Expand Down Expand Up @@ -98,7 +98,7 @@ func runDockerWithOutput(hostname string, c *client.RancherClient, args []string
return fmt.Errorf("Can not contact host %s in state %s", hostname, state)
}

apiVersion := determineApiVersion(host)
apiVersion := determineAPIVersion(host)

tempfile, err := ioutil.TempFile("", "docker-sock")
if err != nil {
Expand Down

0 comments on commit f28c9cd

Please sign in to comment.