sc-mongodb
sc-mongodb copied to clipboard
Error executing action `run` on resource 'ruby_block[config_replicaset]'
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/sc-mongodb/libraries/mongodb.rb:74:in `configure_replicaset'
/var/chef/cache/cookbooks/sc-mongodb/definitions/mongodb.rb:246:in `block (3 levels) in from_file'
Looking at the source I see it approaches
node['mongodb']['config']['net']['port']
but should be
node['mongodb']['config']['mongod']['net']['port']
This breaks sc-mongodb::replicaset recipe
I'm getting the same problem. Seems that attribute is undefined by default.
Looks like this was fixed in #186 already
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.