{"comment":{"created_at":"2011-10-21T13:42:35Z","body":"Great. That's the solution I was using. Glad to be able to get back on trunk. \r\n\r\nThanks. ","updated_at":"2011-10-21T13:42:35Z","url":"https://api.github.com/repos/edelight/chef-cookbooks/issues/comments/2481393","id":2481393,"user":{"gravatar_id":"4da367970053ff57f1ed464e18358249","avatar_url":"https://secure.gravatar.com/avatar/4da367970053ff57f1ed464e18358249?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/zmsmith","id":111880,"login":"zmsmith"}},"action":"created","issue":{"number":14,"created_at":"2011-10-19T16:45:21Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"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?\r\n\r\n```ruby\r\nif members.length == 0\r\n   abort(\"cannot configure replicaset '#{name}', no member nodes found\")\r\nend\r\n```\r\n\r\nSeems like I must be overlooking something obvious.\r\n\r\nThanks. \r\n","comments":4,"title":"Adding first node in replica set","updated_at":"2011-10-21T13:42:35Z","url":"https://api.github.com/repos/edelight/chef-cookbooks/issues/14","id":1995857,"assignee":null,"milestone":null,"closed_at":"2011-10-21T09:19:18Z","user":{"gravatar_id":"4da367970053ff57f1ed464e18358249","avatar_url":"https://secure.gravatar.com/avatar/4da367970053ff57f1ed464e18358249?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/zmsmith","id":111880,"login":"zmsmith"},"html_url":"https://github.com/edelight/chef-cookbooks/issues/14","labels":[],"state":"closed"},"legacy":{"issue_id":1995857,"comment_id":2481393}}