edelight/chef-mongodb

Possible missing attribute in replicaset.rb

TonyCerrit opened this issue · 1 comments

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

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.