Merge pull request #637 from zev/master

Fix chef_client variable name error for vm
This commit is contained in:
Mitchell Hashimoto 2012-01-12 22:40:26 -08:00
commit cfd0e0c30f
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ module Vagrant
command = "#{command_env}#{chef_binary_path("chef-client")} -c #{config.provisioning_path}/client.rb -j #{config.provisioning_path}/dna.json"
env[:ui].info I18n.t("vagrant.provisioners.chef.running_client")
vm.channel.sudo(command) do |type, data|
env[:vm].channel.sudo(command) do |type, data|
# Output the data with the proper color based on the stream.
color = type == :stdout ? :green : :red