Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heaven opened this issue Jan 25, 2018 · 3 comments
Open

Comments

@heaven
Copy link

heaven commented Jan 25, 2018

    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
Copy link
Contributor

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

@devsibwarra
Copy link

Looks like this was fixed in #186 already

@github-actions
Copy link

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.

@github-actions github-actions bot added the Stale label Sep 30, 2020
@xorimabot xorimabot removed the Stale label Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants