cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/2] git commit: cqlsh: make C* version handling more flexible
Date Tue, 02 Jul 2013 21:15:22 GMT
Updated Branches:
  refs/heads/trunk b068a9c4f -> 9c0ca5d60


cqlsh: make C* version handling more flexible


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/56c9d2ff
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/56c9d2ff
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/56c9d2ff

Branch: refs/heads/trunk
Commit: 56c9d2ff266a8ca94f0f399dc86149ccc99ddd07
Parents: 40f0bdc
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Wed Jul 3 00:12:34 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Wed Jul 3 00:12:34 2013 +0300

----------------------------------------------------------------------
 bin/cqlsh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/56c9d2ff/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index 9f1e6cf..999d1d1 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -635,7 +635,7 @@ class Shell(cmd.Cmd):
                 'cql': result['cql_version'],
             }
         self.connection_versions = vers
-        self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', 1)[0].split('.', 2)))
+        self.cass_ver_tuple = tuple(map(int, vers['build'].split('-', 1)[0].split('.')[:3]))
 
     def get_connection_versions_fallback(self):
         if self.cqlver_atleast(3):


Mime
View raw message