sous-chefs / sc-mongodb

Development repository for the sc-mongodb cookbook
https://supermarket.chef.io/cookbooks/sc-mongodb
Apache License 2.0
75 stars 91 forks source link

Error executing action `run` on resource 'ruby_block[config_replicaset]' #184

Open heaven opened 6 years ago

heaven commented 6 years ago
    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

mike-stewart commented 6 years ago

I'm getting the same problem. Seems that attribute is undefined by default.

devsibwarra commented 6 years ago

Looks like this was fixed in #186 already

github-actions[bot] commented 4 years ago

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.