chef / chef/chef-server

Wrong configuration file referenced in error message for missing server section in chef-client.rb

Open
#183 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Status: Consider for next release Status: To be prioritized Triage: Confirmed
Dominant language
Erlang
Stars
303
Forks
211
Avg merge
1d 8h
Merged PRs (30d)
5

Description

From @kevindickerson in chef/opscode-omnibus#723:

This raise [1] produces a RuntimeError message. The message is incorrect. The message has not been updated to reflect the new location for chef-server.rb for Chef 12.

Incorrect
The RuntimeError message directs users to look at /etc/opscode/private-chef.rb.

Correct
The RuntimeError message directs users to look at /etc/opscode/chef-server.rb.

References

  1. https://github.com/chef/opscode-omnibus/blob/12.0.5/files/private-chef-cookbooks/private-chef/libraries/private_chef.rb#L390

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at files/private-chef-cookbooks/private-chef/libraries/private_chef.rb around line 390, where the missing server section raises the RuntimeError. Update the referenced configuration path from /etc/opscode/private-chef.rb to /etc/opscode/chef-server.rb, and verify that the error message shows the corrected path.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.