(#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:
parent
a9c7b3efe2
commit
e8ab85e92b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue