Revert "fix bug when compare version"

This reverts commit af8fbc327d.
This commit is contained in:
ymqytw 2016-11-22 21:02:44 -08:00
parent d248843b65
commit 18f4395f80

View File

@ -1442,7 +1442,7 @@ func GetServerSupportedSMPatchVersion(discoveryClient discovery.DiscoveryInterfa
if serverGitVersion >= string(SMPatchVersion_1_5) {
return SMPatchVersion_1_5, nil
}
if serverGitVersion >= string(SMPatchVersion_1_0) {
if serverGitVersion >= string(SMPatchVersion_1_5) {
return SMPatchVersion_1_0, nil
}
return Unknown, fmt.Errorf("The version is too old: %v\n", serverVersion)