mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-04-24 23:57:49 -04:00
fixed the typo causing incorrect comparison with cVer and cVer; now checking against sVer
This commit is contained in:
parent
5f4aaaa1db
commit
2cce015167
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ func MatchesServerVersion(client *Client, c *restclient.Config) error {
|
|||
return fmt.Errorf("couldn't read version from server: %v\n", err)
|
||||
}
|
||||
// GitVersion includes GitCommit and GitTreeState, but best to be safe?
|
||||
if cVer.GitVersion != sVer.GitVersion || cVer.GitCommit != sVer.GitCommit || cVer.GitTreeState != cVer.GitTreeState {
|
||||
if cVer.GitVersion != sVer.GitVersion || cVer.GitCommit != sVer.GitCommit || cVer.GitTreeState != sVer.GitTreeState {
|
||||
return fmt.Errorf("server version (%#v) differs from client version (%#v)!\n", sVer, cVer)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue