Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add *a* PATH variable.
Browse files Browse the repository at this point in the history
ie. To fix chef barfing with "Undefined method 'split' for nil"
  • Loading branch information
chris committed Jul 12, 2013
1 parent 2dc59b0 commit 53a7e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gusteau/chef.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def run(dna, opts)

@server.run "sh /etc/chef/bootstrap.sh" if opts['bootstrap']

cmd = "env - chef-solo -c #{@dest_dir}/solo.rb -j #{@dest_dir}/dna.json --color"
cmd = "env - PATH=/usr/local/bin:/bin:/usr/bin chef-solo -c #{@dest_dir}/solo.rb -j #{@dest_dir}/dna.json --color"
cmd << " -F #{opts['format']}" if opts['format']
cmd << " -l #{opts['log_level']}" if opts['log_level']
cmd << " -W" if opts['why-run']
Expand Down

0 comments on commit 53a7e57

Please sign in to comment.