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

Modify knife `config.rb` parsing (Prevent `ERROR: The object you are looking for could not be found`) #8275

Open
jerryaldrichiii opened this Issue Mar 5, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@jerryaldrichiii
Copy link
Contributor

jerryaldrichiii commented Mar 5, 2019

Describe the Enhancement:

Using this config.rb fails:

client_name     = "jerry"
client_key      = "/home/jerry/Demo/chef-admin.pem"
chef_server_url = "https://40.118.200.159/organizations/example"
ssl_verify_mode :verify_none

With the following error:

knife client list --config .chef/config.rb
ERROR: The object you are looking for could not be found
Response:

Eventually I deduced that the error was that I had used = to set the values when I should not have.

Describe the Need:

Modify parsing config.rb to do one or more of the following:

  • Allow using =
  • Warn user when = is detected
  • Modify error message to show the actual error

Current Alternative

Use the following config.rb:

client_name     "jerry"
client_key      "/home/jerry/Demo/chef-admin.pem"
chef_server_url "https://40.118.200.159/organizations/example"
ssl_verify_mode :verify_none

Can We Help You Implement This?:

Would love to help out if you decide on the direction 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.