Skip to content

Commit

Permalink
minimal fix for cdc version checking (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
mambocab authored and ptnapoleon committed Jun 28, 2016
1 parent 43b83f4 commit cfa9dc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ccmlib/node.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ccm node
from __future__ import with_statement

from distutils.version import LooseVersion
import errno
import glob
import os
Expand Down Expand Up @@ -1410,7 +1411,7 @@ def __update_yaml(self):
if self.get_cassandra_version() > '3.0' and 'hints_directory' in yaml_text:
data['hints_directory'] = os.path.join(self.get_path(), 'hints')

if self.get_cassandra_version() >= '3.8':
if LooseVersion(self.get_cassandra_version()) >= '3.8':
data['cdc_raw_directory'] = os.path.join(self.get_path(), 'cdc_raw')

if self.cluster.partitioner:
Expand Down

0 comments on commit cfa9dc8

Please sign in to comment.