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|
|
||||
@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
|
||||
|
|
Loading…
Reference in New Issue