diff --git a/lib/vagrant/provisioners/chef.rb b/lib/vagrant/provisioners/chef.rb index 2432cc0b2..03a780d7b 100644 --- a/lib/vagrant/provisioners/chef.rb +++ b/lib/vagrant/provisioners/chef.rb @@ -35,7 +35,7 @@ module Vagrant def chown_provisioning_folder env[:vm].ssh.execute do |ssh| ssh.sudo!("mkdir -p #{config.provisioning_path}") - ssh.sudo!("chown #{env.config.ssh.username} #{config.provisioning_path}") + ssh.sudo!("chown #{env[:vm].config.ssh.username} #{config.provisioning_path}") end end