Go next if local path doesn't exist for Chef

This avoids issues with nil remote_paths
This commit is contained in:
Mitchell Hashimoto 2013-04-02 15:05:10 -07:00
parent 8458166c6a
commit 82f3a3ec29
1 changed files with 1 additions and 0 deletions

View File

@ -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