Skip to content

Commit

Permalink
Support SNAPSHOT jar versions for dse
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Thompson committed Oct 28, 2014
1 parent 86d62ee commit fb40eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccmlib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ def get_dse_cassandra_version(install_dir):
clib = os.path.join(install_dir, 'resources', 'cassandra', 'lib')
for file in os.listdir(clib):
if fnmatch.fnmatch(file, 'cassandra-all*.jar'):
match = re.search('cassandra-all-([0-9.]+)\.jar', file)
match = re.search('cassandra-all-([0-9.]+)(-SNAPSHOT)?\.jar', file)
if match:
return match.group(1)
raise ArgumentError("Unable to determine Cassandra version")
raise ArgumentError("Unable to determine Cassandra version in: "+install_dir)

def get_install_dir_from_cluster_conf(node_path):
file = os.path.join(os.path.dirname(node_path), "cluster.conf")
Expand Down

0 comments on commit fb40eb1

Please sign in to comment.