Skip to content

Commit

Permalink
Fixed issue of not defined replicaset objects for mongos and configse…
Browse files Browse the repository at this point in the history
…rvers.
  • Loading branch information
Markus Korn committed Oct 24, 2011
1 parent e82a6b5 commit 4eaed04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mongodb/definitions/mongodb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
else
# if there is a predefined replicaset name we use it,
# otherwise we try to generate one using 'rs_$SHARD_NAME'
replicaset_name = replicaset['mongodb']['replicaset_name']
begin
replicaset_name = replicaset['mongodb']['replicaset_name']
rescue
replicaset_name = nil
end
if replicaset_name.nil?
begin
replicaset_name = "rs_#{replicaset['mongodb']['shard_name']}"
Expand Down

0 comments on commit 4eaed04

Please sign in to comment.