Permalink
Browse files

fixes #16

  • Loading branch information...
1 parent e67802e commit f7d02fe602187b0c8313df58e246bd03d49c67db @fmgoncalves committed Jul 15, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 lib/Cassandra/Simple.pm
View
@@ -1106,12 +1106,11 @@ sub create_keyspace {
my $opt = shift // {};
my $params = {};
- $params->{strategy_class} =
- 'org.apache.cassandra.locator.NetworkTopologyStrategy'
- unless $opt->{strategy};
+ $params->{strategy_class} = $opt->{strategy} ||
+ 'org.apache.cassandra.locator.NetworkTopologyStrategy';
- $params->{strategy_options} = { 'datacenter1' => '1' }
- unless $opt->{strategy_options};
+ $params->{strategy_options} = $opt->{strategy_options} ||
+ { 'datacenter1' => '1' };
$params->{cf_defs} = [];
$params->{name} = $keyspace;

0 comments on commit f7d02fe

Please sign in to comment.