Fix small scoping issue. @logger is not available from the provisioner

This commit is contained in:
Jan Vansteenkiste 2013-05-02 08:02:58 +02:00
parent 264856478f
commit f058b3025f
1 changed files with 1 additions and 1 deletions

View File

@ -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