edelight/chef-cookbooks — Issue #14: Adding first node in replica set
Author: zmsmith
Created: 2011-10-19 16:45:21+00:00
State: open

If I'm adding the first node of a replica set, isn't the `members` variable being passed into `configure_replicasetconfigure_replicaset` always going to have a length of zero and this check in libraries/mongodb.rb:31 always going to catch?

```ruby
if members.length == 0
abort("cannot configure replicaset '#{name}', no member nodes found")
end
```

Seems like I must be overlooking something obvious.

Thanks.