(#9383) File path expand all chef_zero config path options

This commit ensures that all paths are properly file path expanded for
each config option in chef_zero.
This commit is contained in:
Brian Cain 2018-04-13 15:36:41 -07:00
parent a9c7b3efe2
commit e8ab85e92b
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
2 changed files with 4 additions and 4 deletions

View File

@ -120,7 +120,7 @@ module VagrantPlugins
# Make sure all the paths are in the proper format
config.map do |path|
path = [:host, path] if !path.is_a?(Array)
path = [:host, File.expand_path(path)] if !path.is_a?(Array)
path
end
end

View File

@ -62,11 +62,11 @@ module VagrantPlugins
local_mode: true,
)
still_active = 259 #provisioner has asked chef to reboot
still_active = 259 #provisioner has asked chef to reboot
@config.attempts.times do |attempt|
exit_status = 0
while exit_status == 0 || exit_status == still_active
while exit_status == 0 || exit_status == still_active
if @machine.guest.capability?(:wait_for_reboot)
@machine.guest.capability(:wait_for_reboot)
elsif attempt > 0