Skip to content

Commit

Permalink
Fix panic for DOCKER_HOST without ://
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
  • Loading branch information
LK4D4 committed Aug 26, 2014
1 parent a05d8d4 commit 660cc4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ func main() {
// If we do not have a host, default to unix socket
defaultHost = fmt.Sprintf("unix://%s", api.DEFAULTUNIXSOCKET)
}
if _, err := api.ValidateHost(defaultHost); err != nil {
defaultHost, err := api.ValidateHost(defaultHost)
if err != nil {
log.Fatal(err)
}
flHosts = append(flHosts, defaultHost)
Expand Down

0 comments on commit 660cc4a

Please sign in to comment.