Skip to content

Commit

Permalink
Adding case for updating client version, for Docker 1.12
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Totla <[email protected]>
  • Loading branch information
nishanttotla committed Jul 22, 2016
1 parent 2fdb517 commit b887637
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 b887637

Please sign in to comment.