Skip to content

Commit c2637f6

Browse files
committed
fix host file update path
1 parent 06b75cd commit c2637f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vagrant-hostmanager/hosts_file/updater.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def update_guest(machine)
4141

4242
if update_file(file, machine, false, line_endings)
4343
# upload modified file and remove temporary file
44-
machine.communicate.upload(file.to_s, '/tmp/hosts')
44+
machine.communicate.upload(file.to_s, "/tmp/hosts/hosts.#{machine.name}")
4545
if windir
4646
machine.communicate.sudo("mv -force /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
4747
else

0 commit comments

Comments
 (0)