Fix small scoping issue. @logger is not available from the provisioner
This commit is contained in:
parent
264856478f
commit
f058b3025f
|
@ -32,7 +32,7 @@ module VagrantPlugins
|
|||
host = machine.config.vm.hostname || name
|
||||
ip = get_ip_address.call(machine)
|
||||
host_aliases = machine.config.hostmanager.aliases.join("\s").chomp
|
||||
@logger.info "Adding /etc/hosts entry: #{ip} #{host} #{host_aliases}"
|
||||
machine.env.ui.info "Adding /etc/hosts entry: #{ip} #{host} #{host_aliases}"
|
||||
file << "#{ip}\t#{host}\s#{host_aliases}\n"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue