Skip to content

Commit

Permalink
Fixes #281. Prevent naming a cluster 'current'
Browse files Browse the repository at this point in the history
  • Loading branch information
ptnapoleon committed Jun 29, 2015
1 parent dba8bef commit 7bc7467
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ccmlib/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def __init__(self, path, name, partitioner=None, install_dir=None, create_direct
self._debug = []
self._trace = []

if self.name.lower() == "current":
raise RuntimeError("Cannot name a cluster 'current'.")

##This is incredibly important for
##backwards compatibility.
if 'cassandra_version' in kwargs:
Expand Down

0 comments on commit 7bc7467

Please sign in to comment.