It looks like the author of your knife.rb
file expected the environment variable, “CHEF_CONFIG
“, to exist and it doesn’t. That is, ENV["CHEF_CONFIG"]
is returning nil
which in turn can’t be used as a file name to open.
I’m guessing here, but it looks like the intention was for that environment variable to contain the path to a YAML file that has some configuration in it? This isn’t a default behavior, as far as I know. Perhaps your organization has some documentation to refer to?
Sadly, my Windows knowledge is pretty poor; I might be missing something.
Matt Moretti
I have permission to update the cookbook but this error is coming even listing the nodes.C:\Users\dharmesh.patel\chef-repo\chef-repo\trunk>knife node listERROR: You have an error in your config file C:/Users/dharmesh.patel/chef-repo/chef-repo/trunk/.chef/knife.rbTypeError: can't convert nil into StringC:/Users/dharmesh.patel/chef-repo/chef-repo/trunk/.chef/knife.rb:3:in `initialize'C:/Users/dharmesh.patel/chef-repo/chef-repo/trunk/.chef/knife.rb:3:in `open'C:/Users/dharmesh.patel/chef-repo/chef-repo/trunk/.chef/knife.rb:3:in `from_string'# C:/Users/dharmesh.patel/chef-repo/chef-repo/trunk/.chef/knife.rb2:3: config = YAML::load(File.open(ENV["CHEF_CONFIG"]))4: provider = ENV['CHEF_PROVIDER'] || "internal"--Thanks & Regards
Dharmesh Patel
Archive powered by MHonArc 2.6.16.