Adding case for updating client version, for Docker 1.12

Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
This commit is contained in:
Nishant Totla 2016-07-22 16:34:20 -07:00
parent 2fdb517952
commit b88763773b
No known key found for this signature in database
GPG Key ID: 7EA5781C9B3D0C19
1 changed files with 3 additions and 1 deletions

View File

@ -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")
}
}