edelight / chef-mongodb

MongoDB Chef cookbook
https://community.opscode.com/cookbooks/mongodb
Apache License 2.0
363 stars 3 forks source link

Possible missing attribute in replicaset.rb #339

Open TonyCerrit opened 10 years ago

TonyCerrit commented 10 years ago

line 32 doesn't look right. It is currently replicaset node when I think it should be replicaset node['mongodb']['config']['replset']. Just looking for some confirmation that is correct syntax. It came to my attention when trying to set up a replica set and search seems to fail with error being undefined method[]' for nil:NilClass` as line 208 is refrencing new_resource.replicaset = params[:replicaset]. -Thanks

jamesonjlee commented 10 years ago

it should be the node object (as in the current node's configuration). It should probably be expanded to the explicitly required configuration rather than trying to pass the chef-node object.

otherwise, it is 'correct' in the recipe.