Fix overwrite bug that was inadvertently regressed in the merge.
This commit is contained in:
parent
e217beeabe
commit
733e451216
|
@ -22,13 +22,12 @@ module VagrantPlugins
|
||||||
machines.each do |m|
|
machines.each do |m|
|
||||||
@logger.info "Adding entry for #{m.name} to hosts.#{name}"
|
@logger.info "Adding entry for #{m.name} to hosts.#{name}"
|
||||||
update_entry(m,path.join("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
|
||||||
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
|
end
|
||||||
|
|
||||||
machines
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# delete victim machine from all guests
|
# delete victim machine from all guests
|
||||||
|
|
Loading…
Reference in New Issue