FredHutch / kwik-e-mart

This is the private version of a cookbook for publishing cookbooks to a supermarket and to a chef server
0 stars 0 forks source link

knife.rb gets incorrect $HOME for variable expansion #4

Closed atombaby closed 8 years ago

atombaby commented 8 years ago

Currently the knife.rb uses structures like this:

client_key "#{ENV['HOME']}/.chef/self.pem"

When it runs under test-kitchen this environment variable is set to the value appropriate for the user running chef-client, not the integration user.

While the home environment ensures portability, likely better to just set this using the value of unix_home from the attributes.