Fix overwrite bug that was inadvertently regressed in the merge.

This commit is contained in:
Brian Johnson 2013-06-13 16:20:00 -07:00
parent e217beeabe
commit 733e451216
1 changed files with 2 additions and 3 deletions

View File

@ -22,13 +22,12 @@ module VagrantPlugins
machines.each do |m|
@logger.info "Adding entry for #{m.name} to hosts.#{name}"
update_entry(m,path.join("hosts.#{name}"))
m.communicate.upload(path.join("hosts.#{name}"), '/tmp/hosts')
m.communicate.sudo("mv /tmp/hosts /etc/hosts")
end
end
env.machine(name,p).communicate.upload(path.join("hosts.#{name}"), '/tmp/hosts')
env.machine(name,p).communicate.sudo("mv /tmp/hosts /etc/hosts")
end
machines
end
# delete victim machine from all guests