We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b75cd commit c2637f6Copy full SHA for c2637f6
lib/vagrant-hostmanager/hosts_file/updater.rb
@@ -41,7 +41,7 @@ def update_guest(machine)
41
42
if update_file(file, machine, false, line_endings)
43
# upload modified file and remove temporary file
44
- machine.communicate.upload(file.to_s, '/tmp/hosts')
+ machine.communicate.upload(file.to_s, "/tmp/hosts/hosts.#{machine.name}")
45
if windir
46
machine.communicate.sudo("mv -force /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
47
else
0 commit comments