From 82f3a3ec2949002a4408c73455f486313eecedcb Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 2 Apr 2013 15:05:10 -0700 Subject: [PATCH] Go next if local path doesn't exist for Chef This avoids issues with nil remote_paths --- plugins/provisioners/chef/provisioner/chef_solo.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/provisioners/chef/provisioner/chef_solo.rb b/plugins/provisioners/chef/provisioner/chef_solo.rb index 28d5ce837..45059dfef 100644 --- a/plugins/provisioners/chef/provisioner/chef_solo.rb +++ b/plugins/provisioners/chef/provisioner/chef_solo.rb @@ -74,6 +74,7 @@ module VagrantPlugins remote_path = "#{@config.provisioning_path}/chef-solo-#{get_and_update_counter(:cookbooks_path)}" else @logger.warn("Chef path doesn't exist, not sharing: #{local_path}") + next end else # Path already exists on the virtual machine. Expand it