From 7ab6ab31f8e38994c7eb0d7d293b0bfd53bb1a52 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 14 Dec 2011 23:37:47 -0800 Subject: [PATCH] Another tweak to chef to get it to work with new system --- lib/vagrant/provisioners/chef.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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