Skip to content

Commit

Permalink
Merge pull request docker-archive#2429 from nishanttotla/add-case-doc…
Browse files Browse the repository at this point in the history
…ker-112

Adding case for updating client version, for Docker 1.12
  • Loading branch information
dongluochen committed Jul 23, 2016
2 parents 2fdb517 + b887637 commit 8d2748f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cluster/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ func (e *Engine) updateClientVersionFromServer(serverVersion string) {
e.apiClient.UpdateClientVersion("1.21")
case v.LessThan(version.Version("1.11")):
e.apiClient.UpdateClientVersion("1.22")
default:
case v.LessThan(version.Version("1.12")):
e.apiClient.UpdateClientVersion("1.23")
default:
e.apiClient.UpdateClientVersion("1.24")
}
}

Expand Down

0 comments on commit 8d2748f

Please sign in to comment.