Fix vm variable name to be env[:vm]

This commit is contained in:
Zev Blut 2012-01-13 15:38:35 +09:00
parent ed894ab3a3
commit 481a588bc8
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